diff --git a/frontend/app/components/UsabilityTesting/StepsModal.tsx b/frontend/app/components/UsabilityTesting/StepsModal.tsx index e19f4442d..e6a49d7ed 100644 --- a/frontend/app/components/UsabilityTesting/StepsModal.tsx +++ b/frontend/app/components/UsabilityTesting/StepsModal.tsx @@ -21,7 +21,7 @@ function StepsModal({ onAdd({ title: title, description: description || '', - allowTyping: isAnswerEnabled, + allowTyping: Boolean(isAnswerEnabled), }); onHide(); }; diff --git a/frontend/app/components/UsabilityTesting/TestEdit.tsx b/frontend/app/components/UsabilityTesting/TestEdit.tsx index a3dc00ed1..aa79655c4 100644 --- a/frontend/app/components/UsabilityTesting/TestEdit.tsx +++ b/frontend/app/components/UsabilityTesting/TestEdit.tsx @@ -74,7 +74,7 @@ function TestEdit() { const onSave = (isPreview?: boolean) => { setHasChanged(false); if (testId && testId !== 'new') { - uxtestingStore.updateTest(uxtestingStore.instance!).then((testId) => { + uxtestingStore.updateTest(uxtestingStore.instance!, isPreview).then((testId) => { if (isPreview) { window.open(`${uxtestingStore.instance!.startingPath}?oruxt=${testId}`, '_blank', 'noopener,noreferrer'); } else { @@ -428,17 +428,19 @@ export function Step({ hover ? 'bg-white hover:' : '' }bg-active-blue flex items-start gap-2`} > -