mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-27 09:54:51 +00:00
Upgrade onboardjs version to 1.3.4 (#654)
This commit is contained in:
parent
28fc81068f
commit
497b672633
@ -50,7 +50,7 @@
|
||||
"@welldone-software/why-did-you-render": "4.0.5",
|
||||
"axios": "0.19.2",
|
||||
"bignumber.js": "9.0.0",
|
||||
"bnc-onboard": "1.3.3",
|
||||
"bnc-onboard": "1.3.5",
|
||||
"connected-react-router": "6.7.0",
|
||||
"currency-flags": "^2.1.1",
|
||||
"date-fns": "2.10.0",
|
||||
@ -164,4 +164,4 @@
|
||||
"webpack-dev-server": "3.10.3",
|
||||
"webpack-manifest-plugin": "2.2.0"
|
||||
}
|
||||
}
|
||||
}
|
@ -105,8 +105,12 @@ const ConnectButton = (props: Props) => (
|
||||
color="primary"
|
||||
minWidth={140}
|
||||
onClick={async () => {
|
||||
await onboard.walletSelect()
|
||||
await onboard.walletCheck()
|
||||
const walletSelected = await onboard.walletSelect()
|
||||
|
||||
// perform wallet checks only if user selected a wallet
|
||||
if (walletSelected) {
|
||||
await onboard.walletCheck()
|
||||
}
|
||||
}}
|
||||
variant="contained"
|
||||
{...props}
|
||||
|
Loading…
x
Reference in New Issue
Block a user