From a5c8bd516909b6438f55c471e9060e15892c4953 Mon Sep 17 00:00:00 2001 From: developomp Date: Wed, 8 Sep 2021 10:49:01 +0900 Subject: [PATCH] switch between result and results depending on the number of search results --- source/src/pages/Search.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/pages/Search.tsx b/source/src/pages/Search.tsx index 5a2d5dc..1254b05 100644 --- a/source/src/pages/Search.tsx +++ b/source/src/pages/Search.tsx @@ -300,7 +300,8 @@ function _Search() { doSearch() }} /> - {postCards.length} results + {postCards.length}{" "} + {postCards.length > 1 ? "results" : "result"}

Filters