From 02e8821eff38e8b44be8c87313032b8b8a9a76e1 Mon Sep 17 00:00:00 2001 From: broody Date: Fri, 15 Sep 2023 09:01:02 -0700 Subject: [PATCH] fix(web): initial target location --- web/src/pages/[gameId]/travel.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/pages/[gameId]/travel.tsx b/web/src/pages/[gameId]/travel.tsx index 57c759802..39f4b3e1a 100644 --- a/web/src/pages/[gameId]/travel.tsx +++ b/web/src/pages/[gameId]/travel.tsx @@ -41,6 +41,7 @@ export default function Travel() { if (playerEntity && !isSubmitting) { const location = getLocationById(playerEntity.locationId); setCurrentLocationId(location.id); + setTargetId(location.id); } }, [playerEntity, isSubmitting]);