From 2c4fe58335fd31532abe4161587e7a2cf3c7919c Mon Sep 17 00:00:00 2001 From: Vipin Ajayakumar Date: Sun, 21 Jul 2024 22:53:02 +0100 Subject: [PATCH] Show summary only if exists --- src/components/ComparisonTable.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/components/ComparisonTable.tsx b/src/components/ComparisonTable.tsx index fbec286..2fc7cde 100644 --- a/src/components/ComparisonTable.tsx +++ b/src/components/ComparisonTable.tsx @@ -131,13 +131,17 @@ export const ComparisonTable: React.FC = ({ - - Summary: - - {summary} + {summary && ( + <> + + Summary: + + {summary} + + )} )