Skip to content

Commit

Permalink
Only open dialog if there is no route
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt-Hurd committed Sep 2, 2023
1 parent fdb6c7f commit aacf05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/RouteSelection/RouteSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function RouteSelection() {
const [isDialogOpen, setIsDialogOpen] = React.useState(false);

useEffect(() => {
if (existingRoute) {
if (existingRoute.game.name) {
setIsDialogOpen(true);
}
}, [existingRoute]);
Expand Down

0 comments on commit aacf05f

Please sign in to comment.