Update doc-survey-widget.tsx

This commit is contained in:
Stefan Pejcic
2024-02-11 19:51:28 +01:00
committed by GitHub
parent 160d5c9396
commit e889326257

View File

@@ -60,7 +60,7 @@ export const DocSurveyWidget = ({ className }: Props) => {
}
const data = await updateSurvey({
surveyId: survey.id,
surveyId: survey?.id,
body: { response: selectedOption, responseText: text },
});
if (!data) return;