1
0
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:
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 { 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()
) )