Skip to content

Commit

Permalink
Fix: incorrect redirect param
Browse files Browse the repository at this point in the history
  • Loading branch information
emielvanseveren committed Nov 7, 2024
1 parent c7840df commit b5c8a3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web-main/src/routes/_auth/_global.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const Route = createFileRoute('/_auth/_global')({
if (location.pathname == '/' && !canManageGameServers) {
const gameservers = await context.queryClient.ensureQueryData(gameServersQueryOptions());
if (gameservers.data.length > 0) {
throw redirect({ to: '/gameserver/$gameServerId/shop', params: { gameServerId: gameservers[0].id } });
throw redirect({ to: '/gameserver/$gameServerId/shop', params: { gameServerId: gameservers.data[0].id } });
}
}
},
Expand Down

0 comments on commit b5c8a3e

Please sign in to comment.