Skip to content

Commit

Permalink
Add optional chaining to prevent undefined error (#1173)
Browse files Browse the repository at this point in the history
* Add optional chaining to prevent undefined error

* Remove print statement
  • Loading branch information
daniellemaxwell authored Jun 26, 2024
1 parent 07e4e98 commit 8efb1af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/gds-user-ui/src/components/NeedsAttention/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ const NeedsAttention = ({ buttonText, onClick }: NeedsAttentionProps) => {
{attentionResponse?.messages?.map((item: AttentionResponseType, key: any) => (
<AttentionAlert
key={key}
action={item.action}
severity={item.severity}
message={item.message}
action={item?.action}
severity={item?.severity}
message={item?.message}
onClick={onClick}
buttonText={buttonText}
/>
Expand Down

0 comments on commit 8efb1af

Please sign in to comment.