From f38111073e095fefc11acc7fe2ba5439f6132665 Mon Sep 17 00:00:00 2001 From: Jernej Pregelj Date: Fri, 21 Jun 2019 15:54:00 +0200 Subject: [PATCH] more of Pacific support --- client/src/context/UserProvider.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/context/UserProvider.tsx b/client/src/context/UserProvider.tsx index f0db379..fea2a10 100644 --- a/client/src/context/UserProvider.tsx +++ b/client/src/context/UserProvider.tsx @@ -151,7 +151,6 @@ export default class UserProvider extends PureComponent<{}, UserProviderState> { let isOceanNetwork await window.web3.eth.net.getId((err, netId) => { - console.log(netId) if (err) return const isNile = netId === 8995 @@ -165,6 +164,8 @@ export default class UserProvider extends PureComponent<{}, UserProviderState> { ? 'Nile' : isDuero ? 'Duero' + : isPacific + ? 'Pacific' : netId.toString() if ( @@ -260,7 +261,8 @@ export default class UserProvider extends PureComponent<{}, UserProviderState> { const isNile = network === 'Nile' const isDuero = network === 'Duero' const isSpree = network === 'Spree' - const isOceanNetwork = isNile || isDuero || isSpree + const isPacific = network === 'Pacific' + const isOceanNetwork = isNile || isDuero || isSpree || isPacific network !== this.state.network && this.setState({ isOceanNetwork, network })