Skip to content

Commit a3f4d34

Browse files
committed
Set wallet values to undefined instead of null
1 parent 9ed97f9 commit a3f4d34

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/stores.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ export function resetWalletState(options?: {
165165
// if walletName is the same as the current interface name then do a full reset (checking if to do a disconnect)
166166
if (currentInterface.name === walletName) {
167167
wallet.update(() => ({
168-
name: null,
169-
provider: null,
170-
connect: null,
171-
instance: null,
172-
dashboard: null
168+
name: undefined,
169+
provider: undefined,
170+
connect: undefined,
171+
instance: undefined,
172+
dashboard: undefined
173173
}))
174174

175175
!disconnected &&

0 commit comments

Comments
 (0)