1
0
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:
Matthias Kretschmann 2020-08-11 09:37:02 +02:00
parent 5ce00c9ddc
commit 1c38f30f8a
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -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()
)