diff --git a/client/src/config.ts b/client/src/config.ts index d36f670..6fc2a33 100644 --- a/client/src/config.ts +++ b/client/src/config.ts @@ -29,4 +29,5 @@ export const faucetUri = export const verbose = true export const analyticsId = 'UA-60614729-11' export const allowPricing = process.env.REACT_APP_ALLOW_PRICING || false -export const showRequestTokens = process.env.REACT_APP_SHOW_REQUEST_TOKENS_BUTTON || false +export const showRequestTokens = + process.env.REACT_APP_SHOW_REQUEST_TOKENS_BUTTON || false diff --git a/client/src/routes/Faucet.tsx b/client/src/routes/Faucet.tsx index caccdc3..49e78b8 100644 --- a/client/src/routes/Faucet.tsx +++ b/client/src/routes/Faucet.tsx @@ -28,7 +28,6 @@ class Faucet extends PureComponent<{}, FaucetState> { } private getTokens = async () => { - const { ocean } = this.context const accounts = await ocean.accounts.list() const account = accounts[0] @@ -126,9 +125,7 @@ class Faucet extends PureComponent<{}, FaucetState> { > Request Tokens -

- You can request tokens every once in a while. -

+

You can request tokens every once in a while.

) @@ -158,21 +155,19 @@ class Faucet extends PureComponent<{}, FaucetState> { )} - { - showRequestTokens ? -
- {isLoading ? ( - - ) : error ? ( - - ) : success ? ( - - ) : ( - isLogged && - )} -
: null - } - + {showRequestTokens ? ( +
+ {isLoading ? ( + + ) : error ? ( + + ) : success ? ( + + ) : ( + isLogged && + )} +
+ ) : null} )}