From eeabae941a65473f853b52000970d77c13e9e890 Mon Sep 17 00:00:00 2001 From: JurreBrandsenInfoSupport <149962077+JurreBrandsenInfoSupport@users.noreply.github.com> Date: Tue, 28 May 2024 09:32:06 +0200 Subject: [PATCH] fix unable to see answer in find the expert (#134) --- src/utils/data-manipulation.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/data-manipulation.ts b/src/utils/data-manipulation.ts index 8561a0f..163e9fe 100644 --- a/src/utils/data-manipulation.ts +++ b/src/utils/data-manipulation.ts @@ -122,9 +122,7 @@ const pushUserData = ( userMap[entry.userId]!.communicationPreferences?.length > 0 ? userMap[entry.userId]?.communicationPreferences : ["Do not contact"], - answer: - (answerOptionMap[entry.answerId] as { answer?: string })?.answer ?? - "Unknown Answer", + answer: answerOptionMap[entry.answerId] ?? "Unknown Answer", }); };