Sync URL parameters with elo form for sharing of url

This commit is contained in:
Timothy Armes
2023-09-25 17:28:54 +02:00
parent 14b723c799
commit 57eab6986d
3 changed files with 153 additions and 80 deletions
@@ -114,7 +114,6 @@ export const fetchTournamentResults = publicProcedure
const tournamentId =
input.url.match(/Ref=(\d+)/)?.[1] ?? input.url.match(/Id\/(\d+)/)?.[1];
if (!tournamentId) {
throw new Error("ERR_NO_TOURNAMENT_ID");
}