diff --git a/library/src/containers/Messages/MessageExample.tsx b/library/src/containers/Messages/MessageExample.tsx index 7b32ae4ad..6ed96fbd4 100644 --- a/library/src/containers/Messages/MessageExample.tsx +++ b/library/src/containers/Messages/MessageExample.tsx @@ -57,7 +57,7 @@ export const Example: React.FunctionComponent = ({ useEffect(() => { setExpanded( - (config && config.expand && config.expand.messageExamples) || false, + config?.expand?.messageExamples ?? false ); }, [config.expand]);