File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import { getSessionCustomerAccessToken } from '~/auth';
1212import { client } from '~/client' ;
1313import { graphql } from '~/client/graphql' ;
1414import { revalidate } from '~/client/revalidate-target' ;
15+ import { CurrencyCode } from '~/components/header/fragment' ;
1516import { searchResultsTransformer } from '~/data-transformers/search-results-transformer' ;
1617import { getPreferredCurrencyCode } from '~/lib/currency' ;
1718
@@ -87,7 +88,7 @@ export async function search(
8788 const locale = await getLocale ( ) ;
8889
8990 const getCachedQuickSearchResults = unstable_cache (
90- async ( searchTerm : string , searchCurrencyCode ?: string ) => {
91+ async ( searchTerm : string , searchCurrencyCode ?: CurrencyCode ) => {
9192 const response = await client . fetch ( {
9293 document : GetQuickSearchResultsQuery ,
9394 variables : { filters : { searchTerm } , currencyCode : searchCurrencyCode } ,
You can’t perform that action at this time.
0 commit comments