Skip to content

Commit 9ed97f9

Browse files
committed
Consistent code style for subscriptions
1 parent d83c645 commit 9ed97f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/onboard.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ function init(initialization: Initialization): API {
130130

131131
if (subscriptions.wallet) {
132132
wallet.subscribe((wallet: Wallet) => {
133-
wallet.provider !== null &&
134-
subscriptions.wallet &&
135-
subscriptions.wallet(wallet)
133+
if (wallet.provider !== null) {
134+
subscriptions.wallet && subscriptions.wallet(wallet)
135+
}
136136
})
137137
}
138138
}

0 commit comments

Comments
 (0)