File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -130,9 +130,9 @@ function init(initialization: Initialization): API {
130
130
131
131
if ( subscriptions . wallet ) {
132
132
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
+ }
136
136
} )
137
137
}
138
138
}
Original file line number Diff line number Diff line change @@ -165,11 +165,11 @@ export function resetWalletState(options?: {
165
165
// if walletName is the same as the current interface name then do a full reset (checking if to do a disconnect)
166
166
if ( currentInterface . name === walletName ) {
167
167
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
173
173
} ) )
174
174
175
175
! disconnected &&
You can’t perform that action at this time.
0 commit comments