File tree Expand file tree Collapse file tree 5 files changed +7
-17
lines changed Expand file tree Collapse file tree 5 files changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -167,10 +167,6 @@ function init(options: InitOptions): OnboardAPI {
167
167
}
168
168
}
169
169
170
- if ( ! apiKey || ! notifyUpdate . enabled ) {
171
- notifyUpdate . enabled = false
172
- }
173
-
174
170
updateNotify ( notifyUpdate )
175
171
} else {
176
172
const error = validateNotify ( notify as Notify )
@@ -184,19 +180,11 @@ function init(options: InitOptions): OnboardAPI {
184
180
...notify
185
181
}
186
182
187
- if ( ! apiKey || ! notifyUpdate . enabled ) {
188
- notifyUpdate . enabled = false
189
- }
190
-
191
183
updateNotify ( notifyUpdate )
192
184
}
193
185
} else {
194
186
const notifyUpdate : Partial < Notify > = APP_INITIAL_STATE . notify
195
187
196
- if ( ! apiKey ) {
197
- notifyUpdate . enabled = false
198
- }
199
-
200
188
updateNotify ( notifyUpdate )
201
189
}
202
190
Original file line number Diff line number Diff line change 76
76
(! $accountCenter$ .enabled ||
77
77
($notify$ .position !== $accountCenter$ .position &&
78
78
device .type !== ' mobile' ) ||
79
- separateMobileContainerCheck ) &&
80
- $wallets$ .length
79
+ separateMobileContainerCheck ||
80
+ ! $wallets$ .length )
81
81
82
82
$ : displayAccountCenterSeparate =
83
83
$accountCenter$ .enabled &&
Original file line number Diff line number Diff line change @@ -108,7 +108,9 @@ function dcent({
108
108
currentChain =
109
109
chains . find ( ( { id } : Chain ) => id === chainId ) || currentChain
110
110
111
- const provider = new StaticJsonRpcProvider ( currentChain . rpcUrl )
111
+ const provider = new StaticJsonRpcProvider (
112
+ currentChain . rpcUrl
113
+ ) as providers . StaticJsonRpcProvider
112
114
113
115
return generateAccounts ( dcentKeyring , provider )
114
116
}
Original file line number Diff line number Diff line change 62
62
"typescript" : " ^4.5.5"
63
63
},
64
64
"dependencies" : {
65
- "@web3-onboard/core" : " ^2.8.0 " ,
65
+ "@web3-onboard/core" : " ^2.8.1 " ,
66
66
"@web3-onboard/common" : " ^2.2.1" ,
67
67
"use-sync-external-store" : " 1.0.0"
68
68
},
Original file line number Diff line number Diff line change 63
63
"@vueuse/core" : " ^8.4.2" ,
64
64
"@vueuse/rxjs" : " ^8.2.0" ,
65
65
"@web3-onboard/common" : " ^2.2.1" ,
66
- "@web3-onboard/core" : " ^2.8.0 " ,
66
+ "@web3-onboard/core" : " ^2.8.1 " ,
67
67
"vue-demi" : " ^0.12.4"
68
68
},
69
69
"peerDependencies" : {
You can’t perform that action at this time.
0 commit comments