Skip to content

Commit

Permalink
fix: im feeling lucky not working
Browse files Browse the repository at this point in the history
hardcoded link
  • Loading branch information
JusJira committed Oct 30, 2023
1 parent 10ccea4 commit 7c83c97
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/product/ProductSearchPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ const ProductSearchPanel = ({ path }: { path: string }) => {
const url = await fetch("/api/product/random");
if (url.ok) {
const data = await url.json();
window.location.href = "/"
window.location.href = "/product/" + data[0].id;
window.location.href = "https://chad.jjus.dev/product/" + data[0].id;
setRandoming(false);
}
};
Expand Down

0 comments on commit 7c83c97

Please sign in to comment.