From 8cca002279b01a6fbb7f1c9ac3c53d9cbf262666 Mon Sep 17 00:00:00 2001 From: Norbi <37236152+KatunaNorbert@users.noreply.github.com> Date: Thu, 16 Sep 2021 20:45:27 +0300 Subject: [PATCH] Fix display 0 value as description (#861) * fixed return 0 value * lint error fix --- src/pages/search.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/search.tsx b/src/pages/search.tsx index 8ba43cc66..5e90d63ae 100644 --- a/src/pages/search.tsx +++ b/src/pages/search.tsx @@ -42,8 +42,9 @@ export default function PageGatsbySearch(props: PageProps): ReactElement { } description={ totalPagesNumber && - totalPagesNumber > MAXIMUM_NUMBER_OF_PAGES_WITH_RESULTS && - '**Results displayed are limited to the first 10k, please refine your search.**' + totalPagesNumber > MAXIMUM_NUMBER_OF_PAGES_WITH_RESULTS + ? '**Results displayed are limited to the first 10k, please refine your search.**' + : undefined } uri={props.uri} >