Skip to content

Commit

Permalink
Added an optional chain instead of an expression check
Browse files Browse the repository at this point in the history
  • Loading branch information
syedzubeen authored Oct 3, 2023
1 parent dd13344 commit 22e8b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/containers/Messages/MessageExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const Example: React.FunctionComponent<ExampleProps> = ({

useEffect(() => {
setExpanded(
(config && config.expand && config.expand.messageExamples) || false,
config?.expand?.messageExamples ?? false
);
}, [config.expand]);

Expand Down

0 comments on commit 22e8b53

Please sign in to comment.