Skip to content

Commit 7fdba9a

Browse files
committed
reset profile field update error at new question
1 parent 9a1be26 commit 7fdba9a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ui/screens/question-pages/hooks/useSetupQuestionPage.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ const useSetupQuestionPage = (
3939

4040
if (nextQuestion && currentQuestion?.datafield !== nextQuestion?.datafield) {
4141
setCurrentQuestion(nextQuestion);
42-
if (!profileFieldUpdateError) {
43-
setProfileFieldUpdateError(null);
44-
}
42+
setProfileFieldUpdateError(null);
4543
}
4644

4745
const questionToFetch = nextQuestion || currentQuestion;

0 commit comments

Comments
 (0)