Upgrade onboardjs version to 1.3.4 (#654)

This commit is contained in:
Mati Dastugue 2020-03-13 06:27:59 -03:00 committed by GitHub
parent 28fc81068f
commit 497b672633
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 267 additions and 803 deletions

View File

@ -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",
@ -164,4 +164,4 @@
"webpack-dev-server": "3.10.3", "webpack-dev-server": "3.10.3",
"webpack-manifest-plugin": "2.2.0" "webpack-manifest-plugin": "2.2.0"
} }
} }

View File

@ -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()
await onboard.walletCheck()
// perform wallet checks only if user selected a wallet
if (walletSelected) {
await onboard.walletCheck()
}
}} }}
variant="contained" variant="contained"
{...props} {...props}

1058
yarn.lock

File diff suppressed because it is too large Load Diff