Skip to content

Commit

Permalink
fix loop (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
modship authored Aug 14, 2024
1 parent 00f9fba commit aee2f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/MNSManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function MNSManagement(props: MNSManagementProps) {
useEffect(() => {
if (!connectedAccount || !massaClient || listSpinning) return;
getUserEntryList({ address: connectedAccount.address() });
}, [connectedAccount, massaClient, listSpinning, getUserEntryList]);
}, [connectedAccount, massaClient]);

Check warning on line 30 in frontend/src/components/MNSManagement.tsx

View workflow job for this annotation

GitHub Actions / lint-frontend

React Hook useEffect has missing dependencies: 'getUserEntryList' and 'listSpinning'. Either include them or remove the dependency array
return (
<div className={customClass}>
{!connected ? (
Expand Down

0 comments on commit aee2f75

Please sign in to comment.