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}