File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed
packages/web-wallet/src/hooks Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ export function useWebZjsActions(): WebzjsActions {
49
49
50
50
const syncStateWithWallet = useCallback ( async ( ) => {
51
51
if ( ! state . webWallet ) {
52
- dispatch ( {
53
- type : 'set-error' ,
54
- payload : new Error ( 'Wallet not initialized' ) ,
55
- } ) ;
52
+ // dispatch({
53
+ // type: 'set-error',
54
+ // payload: new Error('Wallet not initialized'),
55
+ // });
56
56
return ;
57
57
}
58
58
try {
@@ -72,10 +72,10 @@ export function useWebZjsActions(): WebzjsActions {
72
72
73
73
const flushDbToStore = useCallback ( async ( ) => {
74
74
if ( ! state . webWallet ) {
75
- dispatch ( {
76
- type : 'set-error' ,
77
- payload : new Error ( 'Wallet not initialized' ) ,
78
- } ) ;
75
+ // dispatch({
76
+ // type: 'set-error',
77
+ // payload: new Error('Wallet not initialized'),
78
+ // });
79
79
return ;
80
80
}
81
81
try {
@@ -94,10 +94,10 @@ export function useWebZjsActions(): WebzjsActions {
94
94
await requestSnap ( ) ;
95
95
96
96
if ( state . webWallet === null ) {
97
- dispatch ( {
98
- type : 'set-error' ,
99
- payload : new Error ( 'Wallet not initialized' ) ,
100
- } ) ;
97
+ // dispatch({
98
+ // type: 'set-error',
99
+ // payload: new Error('Wallet not initialized'),
100
+ // });
101
101
return ;
102
102
}
103
103
@@ -178,10 +178,10 @@ export function useWebZjsActions(): WebzjsActions {
178
178
return ;
179
179
}
180
180
if ( ! state . webWallet ) {
181
- dispatch ( {
182
- type : 'set-error' ,
183
- payload : new Error ( 'Wallet not initialized' ) ,
184
- } ) ;
181
+ // dispatch({
182
+ // type: 'set-error',
183
+ // payload: new Error('Wallet not initialized'),
184
+ // });
185
185
return ;
186
186
}
187
187
if ( state . activeAccount === undefined ) {
You can’t perform that action at this time.
0 commit comments