From d802eb3f2863d5486c43f7dd87abee83988f3047 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sun, 14 Sep 2025 22:36:16 +0200 Subject: [PATCH] Fix --- web/components/searches/button.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/components/searches/button.tsx b/web/components/searches/button.tsx index b6ee4454..082b872a 100644 --- a/web/components/searches/button.tsx +++ b/web/components/searches/button.tsx @@ -114,8 +114,7 @@ function formatFilters(filters: Partial): ReactElement stringValue = str.charAt(0).toUpperCase() + str.slice(1) } - let display: ReactElement - display = key === 'name' + const display: ReactElement = key === 'name' ? {stringValue as string} : <>{stringValue}