mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-14 17:24:51 +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 { account, status, chainId } = useOcean()
|
||||||
const isOceanConnectionError = status === -1
|
const isOceanConnectionError = status === -1
|
||||||
const correctNetwork = isCorrectNetwork(chainId)
|
const correctNetwork = isCorrectNetwork(chainId)
|
||||||
const showFeedback = !account || isOceanConnectionError || !correctNetwork
|
const showFeedback =
|
||||||
|
!account ||
|
||||||
|
isOceanConnectionError ||
|
||||||
|
!correctNetwork ||
|
||||||
|
isBalanceInsufficient === true
|
||||||
|
|
||||||
const desiredNetworkName = appConfig.network.replace(/^\w/, (c: string) =>
|
const desiredNetworkName = appConfig.network.replace(/^\w/, (c: string) =>
|
||||||
c.toUpperCase()
|
c.toUpperCase()
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user