Skip to content

Commit ab68af8

Browse files
1.25.0-0.5.3: [fix] Fixes issue when gnosis wallet is not found label is undefined (#557)
1 parent 3f32a22 commit ab68af8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bnc-onboard",
3-
"version": "1.25.0-0.5.2",
3+
"version": "1.25.0-0.5.3",
44
"description": "Onboard users to web3 by allowing them to select a wallet, get that wallet ready to transact and have access to synced wallet state.",
55
"keywords": [
66
"ethereum",

src/onboard.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@ function init(initialization: Initialization): API {
248248
const {
249249
// If label is undefined set it to 'Gnosis Safe'
250250
label: gnosisWalletName = 'Gnosis Safe'
251-
} = initialization.walletSelect?.wallets?.find(
251+
} = (initialization.walletSelect?.wallets?.find(
252252
wallet => isWalletInit(wallet) && wallet.walletName === 'gnosis'
253-
) as WalletInitOptions
253+
) || {}) as WalletInitOptions
254254

255255
if (gnosisWalletName) {
256256
import(

0 commit comments

Comments
 (0)