We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2d3eed commit aadcdcfCopy full SHA for aadcdcf
hooks/useSearch.ts
@@ -19,7 +19,7 @@ const useSearch = (query: string) => {
19
fetchPolicy: 'no-cache',
20
variables: {
21
where: {
22
- or: [{token: query}, {token: query.toLowerCase()}]
+ or: [{token: query}, {token: query ? query.toLowerCase() : ""}]
23
},
24
first: 1,
25
0 commit comments