(Fix) Remove the provider when the site is disconnected (#1585)
This commit is contained in:
parent
914333dc54
commit
da1e39c2ef
|
@ -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())
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue