fix: make query check account for spaces

This commit is contained in:
Stavros
2025-02-16 21:14:09 +02:00
parent 0da82ae3fe
commit 0f8d2e7fde
4 changed files with 9 additions and 5 deletions

View File

@@ -1 +1,2 @@
export const capitalize = (s: string) => s.charAt(0).toUpperCase() + s.slice(1);
export const capitalize = (s: string) => s.charAt(0).toUpperCase() + s.slice(1);
export const isQueryValid = (value: string) => value.trim() !== "" && value !== "null";