Skip to content

Commit

Permalink
remove unneeded conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
Da-Colon committed Mar 29, 2024
1 parent c232694 commit 69d9818
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/hooks/utils/useCanUserSubmitProposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,8 @@ export function useCanUserCreateProposal() {
const loadCanUserCreateProposal = async () => {
setCanUserCreateProposal(await getCanUserCreateProposal());
};
if (canUserCreateProposal === undefined) {
loadCanUserCreateProposal();
}
}, [getCanUserCreateProposal, canUserCreateProposal, user]);
loadCanUserCreateProposal();
}, [getCanUserCreateProposal, canUserCreateProposal]);

return { canUserCreateProposal, getCanUserCreateProposal };
}

0 comments on commit 69d9818

Please sign in to comment.