From c20c84da3571da4cc3f9431bfb8aa7e3efef6044 Mon Sep 17 00:00:00 2001 From: Magdalena Markusik Date: Tue, 22 Sep 2020 13:10:53 +0200 Subject: [PATCH] refactor --- src/components/SeoForm/SeoForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/SeoForm/SeoForm.tsx b/src/components/SeoForm/SeoForm.tsx index 544f6f2d4..0fc243951 100644 --- a/src/components/SeoForm/SeoForm.tsx +++ b/src/components/SeoForm/SeoForm.tsx @@ -94,7 +94,7 @@ const SeoForm: React.FC = props => { const intl = useIntl(); const [expanded, setExpansionStatus] = React.useState(false); const toggleExpansion = () => setExpansionStatus(!expanded); - const shouldDisplayHelperText = () => helperText && !expanded; + const shouldDisplayHelperText = helperText && !expanded; return ( @@ -112,7 +112,7 @@ const SeoForm: React.FC = props => { } /> - {shouldDisplayHelperText() && ( + {shouldDisplayHelperText && (