From c78e504bfba369adf2716964f787f9655fc9ea07 Mon Sep 17 00:00:00 2001 From: Tom Schmidt Date: Thu, 8 Mar 2018 17:08:43 -0800 Subject: Fixed lint --- packages/website/ts/index.tsx | 4 +++- packages/website/ts/utils/utils.ts | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'packages/website/ts') diff --git a/packages/website/ts/index.tsx b/packages/website/ts/index.tsx index f3ec00e35..1eaf6274b 100644 --- a/packages/website/ts/index.tsx +++ b/packages/website/ts/index.tsx @@ -49,7 +49,9 @@ const LazyConnectDocumentation = createLazyComponent('Documentation', async () = ReactGA.initialize('UA-98720122-1'); window.onload = () => { - const providerName = (window as any).web3 ? utils.web3ProviderToString((window as any).web3.currentProvider) : 'NONE'; + const providerName = (window as any).web3 + ? utils.web3ProviderToString((window as any).web3.currentProvider) + : 'NONE'; ReactGA.ga('set', 'dimension1', providerName); }; const store: ReduxStore = createStore(reducer); diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts index bed818351..b6a02f253 100644 --- a/packages/website/ts/utils/utils.ts +++ b/packages/website/ts/utils/utils.ts @@ -1,4 +1,4 @@ -import { ECSignature, ExchangeContractErrs, ZeroEx, ZeroExError, Web3Provider } from '0x.js'; +import { ECSignature, ExchangeContractErrs, Web3Provider, ZeroEx, ZeroExError } from '0x.js'; import { BigNumber } from '@0xproject/utils'; import deepEqual = require('deep-equal'); import isMobile = require('is-mobile'); @@ -313,9 +313,9 @@ export const utils = { let parsedProviderName = provider.constructor.name; if (provider.constructor.name === 'MetamaskInpageProvider') { parsedProviderName = 'METAMASK'; - } else if (provider.constructor.name === 'EthereumProvider') { + } else if (provider.constructor.name === 'EthereumProvider') { parsedProviderName = 'MIST'; - } else if (provider.constructor.name === 'o') { + } else if (provider.constructor.name === 'o') { parsedProviderName = 'PARITY'; } return parsedProviderName; @@ -327,5 +327,5 @@ export const utils = { return new Promise((resolve, reject) => { window.onload = () => resolve(); }); - } + }, }; -- cgit