From b03b780eb035e322185c4bf82a9df3da3a58eba2 Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Fri, 21 Oct 2022 17:36:27 +0700 Subject: [PATCH] Only send library in support form if category is problem --- studio/components/interfaces/Support/SupportForm.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/studio/components/interfaces/Support/SupportForm.tsx b/studio/components/interfaces/Support/SupportForm.tsx index fe868a8e7c1..437e1ee771d 100644 --- a/studio/components/interfaces/Support/SupportForm.tsx +++ b/studio/components/interfaces/Support/SupportForm.tsx @@ -142,7 +142,8 @@ const SupportForm: FC = ({ setSentCategory }) => { const payload = { ...values, - library: selectedLibrary !== undefined ? selectedLibrary.key : '', + library: + values.category === 'Problem' && selectedLibrary !== undefined ? selectedLibrary.key : '', message: formatMessage(values.message, attachments), verified: true, tags: ['dashboard-support-form'],