diff --git a/src/components/RouteSelection/RouteSelection.tsx b/src/components/RouteSelection/RouteSelection.tsx index 49c1dae..79d86b2 100644 --- a/src/components/RouteSelection/RouteSelection.tsx +++ b/src/components/RouteSelection/RouteSelection.tsx @@ -13,7 +13,7 @@ function RouteSelection() { const [isDialogOpen, setIsDialogOpen] = React.useState(false); useEffect(() => { - if (existingRoute) { + if (existingRoute.game.name) { setIsDialogOpen(true); } }, [existingRoute]);