Skip to content

Commit

Permalink
fix: random query build
Browse files Browse the repository at this point in the history
  • Loading branch information
djpiper28 committed Jan 10, 2025
1 parent f1535ed commit e36f87f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/randomQuery.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";
import { useEffect, useState } from "react";
import { useRouter } from "next/navigation";
import searchUrlFor from "./searchUrl";
import searchUrlFor, { SortType } from "./searchUrl";

export default function RandomQuery() {
const router = useRouter();
Expand Down Expand Up @@ -31,7 +31,7 @@ export default function RandomQuery() {
<p
className="px-3"
onClick={() => {
router.push(searchUrlFor(query, 1));
router.push(searchUrlFor(query, 1, SortType.CardName, true));
}}
>
🔍 {query}
Expand Down

0 comments on commit e36f87f

Please sign in to comment.