diff --git a/src/components/modules/shared/SummarySwitcher.tsx b/src/components/modules/shared/SummarySwitcher.tsx index a58317fe8d..7482e90e65 100644 --- a/src/components/modules/shared/SummarySwitcher.tsx +++ b/src/components/modules/shared/SummarySwitcher.tsx @@ -20,7 +20,7 @@ export const SummarySwitcher: FC< const cid = getCidForBaseModel(data) const finalSummary = 'summary' in data ? data.summary : summary - if (typeof finalSummary != 'undefined' && finalSummary.trim().length) + if (finalSummary && finalSummary.trim().length) return if (!enabled) return null