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",
|
"@welldone-software/why-did-you-render": "4.0.5",
|
||||||
"axios": "0.19.2",
|
"axios": "0.19.2",
|
||||||
"bignumber.js": "9.0.0",
|
"bignumber.js": "9.0.0",
|
||||||
"bnc-onboard": "1.3.3",
|
"bnc-onboard": "1.3.5",
|
||||||
"connected-react-router": "6.7.0",
|
"connected-react-router": "6.7.0",
|
||||||
"currency-flags": "^2.1.1",
|
"currency-flags": "^2.1.1",
|
||||||
"date-fns": "2.10.0",
|
"date-fns": "2.10.0",
|
||||||
|
|
|
@ -105,8 +105,12 @@ const ConnectButton = (props: Props) => (
|
||||||
color="primary"
|
color="primary"
|
||||||
minWidth={140}
|
minWidth={140}
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
await onboard.walletSelect()
|
const walletSelected = await onboard.walletSelect()
|
||||||
|
|
||||||
|
// perform wallet checks only if user selected a wallet
|
||||||
|
if (walletSelected) {
|
||||||
await onboard.walletCheck()
|
await onboard.walletCheck()
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
variant="contained"
|
variant="contained"
|
||||||
{...props}
|
{...props}
|
||||||
|
|
Loading…
Reference in New Issue