Skip to content

Commit

Permalink
Fix/double send notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryczko committed May 11, 2024
1 parent 03539d0 commit a62df04
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ export const useSurveyAnswerManager = (
if (
!process.env.NEXT_PUBLIC_ALLOW_MULTIPLE_ANSWERS &&
localStorageValue.includes(surveyId) &&
!isAnswering
!isAnswering &&
!isSurveyFinished
) {
router.replace('/');
toast.success(t('alreadyAnswered'));
Expand Down

0 comments on commit a62df04

Please sign in to comment.