Skip to content

Commit a62df04

Browse files
authored
Fix/double send notifications
1 parent 03539d0 commit a62df04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/features/surveys/features/SurveyDisplay/managers/surveyAnswerManager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ export const useSurveyAnswerManager = (
138138
if (
139139
!process.env.NEXT_PUBLIC_ALLOW_MULTIPLE_ANSWERS &&
140140
localStorageValue.includes(surveyId) &&
141-
!isAnswering
141+
!isAnswering &&
142+
!isSurveyFinished
142143
) {
143144
router.replace('/');
144145
toast.success(t('alreadyAnswered'));

0 commit comments

Comments
 (0)