1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

add Spree to network detection

This commit is contained in:
Matthias Kretschmann 2019-05-14 12:57:21 +02:00
parent 42dcb8c584
commit 6dcb7166ce
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -158,8 +158,9 @@ export default class UserProvider extends PureComponent<{}, UserProviderState> {
const isNile = netId === 8995 const isNile = netId === 8995
const isDuero = netId === 2199 const isDuero = netId === 2199
const isSpree = netId === 8996
isOceanNetwork = isNile || isDuero isOceanNetwork = isNile || isDuero || isSpree
const network = isNile const network = isNile
? 'Nile' ? 'Nile'
@ -259,7 +260,8 @@ export default class UserProvider extends PureComponent<{}, UserProviderState> {
const network = await ocean.keeper.getNetworkName() const network = await ocean.keeper.getNetworkName()
const isNile = network === 'Nile' const isNile = network === 'Nile'
const isDuero = network === 'Duero' const isDuero = network === 'Duero'
const isOceanNetwork = isNile || isDuero const isSpree = network === 'Spree'
const isOceanNetwork = isNile || isDuero || isSpree
network !== this.state.network && network !== this.state.network &&
this.setState({ isOceanNetwork, network }) this.setState({ isOceanNetwork, network })