Skip to content

Commit ea45380

Browse files
authored
Merge pull request #105 from ChainSafe/irubido/tempDisableWNIPopup
temp disable WNI popup
2 parents 8224e25 + 23c97bd commit ea45380

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

packages/web-wallet/src/hooks/useWebzjsActions.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ export function useWebZjsActions(): WebzjsActions {
4949

5050
const syncStateWithWallet = useCallback(async () => {
5151
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+
// });
5656
return;
5757
}
5858
try {
@@ -72,10 +72,10 @@ export function useWebZjsActions(): WebzjsActions {
7272

7373
const flushDbToStore = useCallback(async () => {
7474
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+
// });
7979
return;
8080
}
8181
try {
@@ -94,10 +94,10 @@ export function useWebZjsActions(): WebzjsActions {
9494
await requestSnap();
9595

9696
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+
// });
101101
return;
102102
}
103103

@@ -178,10 +178,10 @@ export function useWebZjsActions(): WebzjsActions {
178178
return;
179179
}
180180
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+
// });
185185
return;
186186
}
187187
if (state.activeAccount === undefined) {

0 commit comments

Comments
 (0)