Skip to content

Commit

Permalink
fix: 🐛 try to fetch tk on client
Browse files Browse the repository at this point in the history
  • Loading branch information
leephan2k1 committed Oct 20, 2022
1 parent 56d5f2b commit 344c16a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/shared/SearchInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 42,13 @@ function SearchInput({ styles, focusOnMount }: SearchInputProps) {
`/api/v2/products?limit=10&aggregations=2&q=${encodeURIComponent(
keyword,
)}`,
{
headers: {
origin: 'https://tiki.vn',
Referer: 'https://tiki.vn/',
Host: 'tiki.vn',
},
},
);

const tikiResult = handleTikiSearch(tikiData?.data);
Expand Down

0 comments on commit 344c16a

Please sign in to comment.