Skip to content

Commit

Permalink
fix: im feeling lucky
Browse files Browse the repository at this point in the history
  • Loading branch information
JusJira committed Oct 30, 2023
1 parent 4f19553 commit 10ccea4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/product/ProductSearchPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +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;
setRandoming(false);
}
Expand Down

0 comments on commit 10ccea4

Please sign in to comment.