diff --git a/editor.planx.uk/src/components/Feedback/MoreInfoFeedback.tsx b/editor.planx.uk/src/components/Feedback/MoreInfoFeedback.tsx index b8e5370d79..cbe22755bd 100644 --- a/editor.planx.uk/src/components/Feedback/MoreInfoFeedback.tsx +++ b/editor.planx.uk/src/components/Feedback/MoreInfoFeedback.tsx @@ -52,7 +52,8 @@ const MoreInfoFeedbackComponent: React.FC = () => { }; async function handleFeedbackFormSubmit(values: UserFeedback) { - const metadata: any = await getInternalFeedbackMetadata(); + if (!feedbackOption) return; + const metadata = await getInternalFeedbackMetadata(); const feedbackType = { feedbackType: feedbackOption }; const data = { ...metadata, ...feedbackType, ...values }; await insertFeedbackMutation(data);