From bfb3ae8e8dac85ba7f71064d59c351ae61d78f9e Mon Sep 17 00:00:00 2001 From: fernandomg Date: Tue, 10 Nov 2020 17:56:27 -0300 Subject: [PATCH] fix GNOSIS-SAFE-MULTISIG-MAINNET-5 by removing the provider, when the account is not available --- src/components/ConnectButton/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ConnectButton/index.tsx b/src/components/ConnectButton/index.tsx index 478a571218..c382253aaa 100644 --- a/src/components/ConnectButton/index.tsx +++ b/src/components/ConnectButton/index.tsx @@ -4,7 +4,7 @@ import React from 'react' import Button from 'src/components/layout/Button' import { getNetworkId } from 'src/config' import { getWeb3, setWeb3 } from 'src/logic/wallets/getWeb3' -import { fetchProvider } from 'src/logic/wallets/store/actions' +import { fetchProvider, removeProvider } from 'src/logic/wallets/store/actions' import transactionDataCheck from 'src/logic/wallets/transactionDataCheck' import { getSupportedWallets } from 'src/logic/wallets/utils/walletList' import { store } from 'src/store' @@ -39,6 +39,7 @@ export const onboard = Onboard({ if (!address && lastUsedAddress) { lastUsedAddress = '' providerName = undefined + store.dispatch(removeProvider()) } }, },