diff --git a/src/apps/search-result/helper.ts b/src/apps/search-result/helper.ts index 2b14b7d3a4..19bea71e8e 100644 --- a/src/apps/search-result/helper.ts +++ b/src/apps/search-result/helper.ts @@ -18,4 +18,13 @@ export const getFirstMaterialTypeFromFilters = ( : undefined; }; +export const shouldShowInvalidSearchPage = ( + q: string, + qUrlParameter: string | null +) => { + return ( + (!qUrlParameter && !q) || (!qUrlParameter && q === "null") || q.length < 3 + ); +}; + export default {};