Skip to content

Commit 658adb1

Browse files
committed
Set wallet store values to undefined
1 parent bbbe247 commit 658adb1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/stores.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,12 @@ export function resetWalletState(options?: {
125125
// no options object, so do a full reset by disconnecting and setting interface to null
126126
if (!options) {
127127
wallet.update(() => ({
128-
name: null,
129-
provider: null,
130-
connect: null,
131-
instance: null,
132-
dashboard: null
128+
name: undefined,
129+
provider: undefined,
130+
connect: undefined,
131+
instance: undefined,
132+
dashboard: undefined,
133+
type: undefined
133134
}))
134135

135136
currentInterface.disconnect && currentInterface.disconnect()

0 commit comments

Comments
 (0)