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