Skip to content

Commit

Permalink
Update dupes response
Browse files Browse the repository at this point in the history
  • Loading branch information
vpodk committed Feb 7, 2024
1 parent 758ca0e commit 5df50c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/search/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function SearchForm() {
fetch(endpoint + encodeURIComponent(url))
.then((res) => res.json())
.then((data) => {
setProducts(data.dupes);
setProducts(data.dupes || []);
input.value = url;
});
input.value = "Loading...";
Expand Down

0 comments on commit 5df50c0

Please sign in to comment.