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:
parent
42dcb8c584
commit
6dcb7166ce
@ -158,8 +158,9 @@ export default class UserProvider extends PureComponent<{}, UserProviderState> {
|
||||
|
||||
const isNile = netId === 8995
|
||||
const isDuero = netId === 2199
|
||||
const isSpree = netId === 8996
|
||||
|
||||
isOceanNetwork = isNile || isDuero
|
||||
isOceanNetwork = isNile || isDuero || isSpree
|
||||
|
||||
const network = isNile
|
||||
? 'Nile'
|
||||
@ -259,7 +260,8 @@ export default class UserProvider extends PureComponent<{}, UserProviderState> {
|
||||
const network = await ocean.keeper.getNetworkName()
|
||||
const isNile = network === 'Nile'
|
||||
const isDuero = network === 'Duero'
|
||||
const isOceanNetwork = isNile || isDuero
|
||||
const isSpree = network === 'Spree'
|
||||
const isOceanNetwork = isNile || isDuero || isSpree
|
||||
|
||||
network !== this.state.network &&
|
||||
this.setState({ isOceanNetwork, network })
|
||||
|
Loading…
Reference in New Issue
Block a user