From e334bfd5036528b2829a6b8fee1e3aacd019a05c Mon Sep 17 00:00:00 2001 From: Magic Cat Date: Wed, 1 Nov 2023 16:34:50 +0700 Subject: [PATCH] check if content is array --- .../src/screens/proposal_details/components/overview/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web-desmos/src/screens/proposal_details/components/overview/index.tsx b/apps/web-desmos/src/screens/proposal_details/components/overview/index.tsx index ca82c883eb..34a05973ad 100644 --- a/apps/web-desmos/src/screens/proposal_details/components/overview/index.tsx +++ b/apps/web-desmos/src/screens/proposal_details/components/overview/index.tsx @@ -27,7 +27,7 @@ const Overview: FC<{ className?: string; overview: OverviewType }> = ({ classNam const { t } = useAppTranslation('proposals'); let types: string[] = []; - if (overview.content.length > 1) { + if (Array.isArray(overview.content)) { overview.content.forEach((type: string) => { types.push(getProposalType(R.pathOr('', ['@type'], type))); });