mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-29 18:00:26 -06:00
fix: recall not working on thank you card (#2586)
This commit is contained in:
committed by
GitHub
parent
61d8970420
commit
82504e54b1
@@ -77,7 +77,6 @@ export const QuestionFormInput = ({
|
||||
className,
|
||||
}: QuestionFormInputProps) => {
|
||||
const question: TSurveyQuestion = localSurvey.questions[questionIdx];
|
||||
const questionId = question?.id;
|
||||
const isChoice = id.includes("choice");
|
||||
const isMatrixLabelRow = id.includes("row");
|
||||
const isMatrixLabelColumn = id.includes("column");
|
||||
@@ -85,6 +84,10 @@ export const QuestionFormInput = ({
|
||||
const isWelcomeCard = questionIdx === -1;
|
||||
const index = getIndex(id, isChoice || isMatrixLabelColumn || isMatrixLabelRow);
|
||||
|
||||
const questionId = useMemo(() => {
|
||||
return isWelcomeCard ? "start" : isThankYouCard ? "end" : question.id;
|
||||
}, [isWelcomeCard, isThankYouCard, question?.id]);
|
||||
|
||||
const enabledLanguages = useMemo(
|
||||
() => getEnabledLanguages(localSurvey.languages ?? []),
|
||||
[localSurvey.languages]
|
||||
|
||||
Reference in New Issue
Block a user