Skip to content

Commit

Permalink
Only run useEffect at first render
Browse files Browse the repository at this point in the history
  • Loading branch information
miko committed Oct 13, 2023
1 parent b8ff3e2 commit 895e741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/modal/modalRemoveAccount/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default function ModalRemoveAccount(props: Props) {
doFetchClaimListMine(page, pageSize, resolve);
doFetchChannelListMine();
}
}, [isPendingDeletion, isWalletEmpty, doFetchAccountList, doFetchClaimListMine, doFetchChannelListMine]);
}, []);

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

0 comments on commit 895e741

Please sign in to comment.