Skip to content

Commit a24f3e8

Browse files
authored
fix: useEffects deps (#1680)
1 parent 6b58042 commit a24f3e8

File tree

2 files changed

+2
-2
lines changed
  • packages/extension-polkagate/src

2 files changed

+2
-2
lines changed

packages/extension-polkagate/src/fullscreen/accountDetails/unlock/Review.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default function Review ({ address, api, classToUnlock, setDisplayPopup,
9393
const params = [...removes, ...unlocks];
9494

9595
setParams(params);
96-
}, [api, batchAll, formatted, classToUnlock, remove, unlockClass]);
96+
}, [classToUnlock, formatted, remove, unlockClass]);
9797

9898
useEffect((): void => {
9999
const fetchedProxyItems = proxies?.map((p: Proxy) => ({ proxy: p, status: 'current' })) as ProxyItem[];

packages/extension-polkagate/src/popup/account/unlock/Review.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default function Review ({ address, api, classToUnlock, setRefresh, setSh
8888
const params = [...removes, ...unlocks];
8989

9090
setParams(params as any);
91-
}, [api, batchAll, formatted, classToUnlock, remove, unlockClass]);
91+
}, [classToUnlock, formatted, remove, unlockClass]);
9292

9393
const goToAccount = useCallback(() => {
9494
setShow(false);

0 commit comments

Comments
 (0)