mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-28 22:31:22 -05:00
Move tournament URL
This commit is contained in:
@@ -4,9 +4,9 @@ import { useRouter } from "next/dist/client/router";
|
||||
export function useTournamentData() {
|
||||
const router = useRouter();
|
||||
const { tournament } = router.query;
|
||||
// TODO: as
|
||||
const [result] = useTournamentByIdentifierQuery({
|
||||
variables: { identifier: tournament as string },
|
||||
variables: { identifier: typeof tournament === "string" ? tournament : "" },
|
||||
pause: typeof tournament !== "string",
|
||||
});
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user