Skip to content

Commit

Permalink
Account deletion: Only run useEffect at first render (#2997)
Browse files Browse the repository at this point in the history
* Only run useEffect at first render

* Ignore lint

---------

Co-authored-by: miko <sauce47@posteo.net>
  • Loading branch information
keikari and miko authored Oct 13, 2023
1 parent b8ff3e2 commit 252a3c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/modal/modalRemoveAccount/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ export default function ModalRemoveAccount(props: Props) {
doFetchClaimListMine(page, pageSize, resolve);
doFetchChannelListMine();
}
}, [isPendingDeletion, isWalletEmpty, doFetchAccountList, doFetchClaimListMine, doFetchChannelListMine]);
// eslint-disable-next-line react-hooks/exhaustive-deps -- on mount
}, []);

async function handleOnClick() {
setButtonClicked(true);
Expand Down

0 comments on commit 252a3c6

Please sign in to comment.