From 8efb1af3ea24366665c4729af5fdc56bf0db4941 Mon Sep 17 00:00:00 2001 From: Danielle Date: Wed, 26 Jun 2024 11:32:44 -0400 Subject: [PATCH] Add optional chaining to prevent undefined error (#1173) * Add optional chaining to prevent undefined error * Remove print statement --- web/gds-user-ui/src/components/NeedsAttention/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/gds-user-ui/src/components/NeedsAttention/index.tsx b/web/gds-user-ui/src/components/NeedsAttention/index.tsx index ee8d10a1c..0bc10ea8c 100644 --- a/web/gds-user-ui/src/components/NeedsAttention/index.tsx +++ b/web/gds-user-ui/src/components/NeedsAttention/index.tsx @@ -38,9 +38,9 @@ const NeedsAttention = ({ buttonText, onClick }: NeedsAttentionProps) => { {attentionResponse?.messages?.map((item: AttentionResponseType, key: any) => (