Skip to content

Commit

Permalink
#218 - add useEffect missed dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo committed Oct 2, 2023
1 parent e0e6dc1 commit d657a6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useHandleRedeem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -600,13 +600,13 @@ export function useHandleRedeem() {
}
console.debug("completeTransferWithRelay:inProgress", inProgress);
console.debug("completeTransferWithRelay:recipit", recipit);
}, [inProgress, recipit]);
}, [inProgress, recipit, enqueueSnackbar]);

useEffect(() => {
enqueueSnackbar(null, {
content: <Alert severity="error">{parseError(error)}</Alert>,
});
}, [error])
}, [error, enqueueSnackbar])

const handleRedeemClick = useCallback(() => {
/**
Expand Down

0 comments on commit d657a6d

Please sign in to comment.