mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-13 16:54:53 +01:00
restore insufficient balance feedback
This commit is contained in:
parent
5ce00c9ddc
commit
1c38f30f8a
@ -20,7 +20,12 @@ export default function Web3Feedback({
|
||||
const { account, status, chainId } = useOcean()
|
||||
const isOceanConnectionError = status === -1
|
||||
const correctNetwork = isCorrectNetwork(chainId)
|
||||
const showFeedback = !account || isOceanConnectionError || !correctNetwork
|
||||
const showFeedback =
|
||||
!account ||
|
||||
isOceanConnectionError ||
|
||||
!correctNetwork ||
|
||||
isBalanceInsufficient === true
|
||||
|
||||
const desiredNetworkName = appConfig.network.replace(/^\w/, (c: string) =>
|
||||
c.toUpperCase()
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user