From d1cdf8cf6d0687caaa9c7d0f0edbd9112e5597df Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Thu, 19 Dec 2024 17:50:41 +0100 Subject: [PATCH] =?UTF-8?q?Affichage=20de=20la=20derni=C3=A8re=20localisat?= =?UTF-8?q?ion=20re=C3=A7ue=20uniquement=20en=20d=C3=A9veloppement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/utils/geolocation.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/utils/geolocation.ts b/client/utils/geolocation.ts index a9a240f..f53931e 100644 --- a/client/utils/geolocation.ts +++ b/client/utils/geolocation.ts @@ -18,7 +18,8 @@ TaskManager.defineTask(LOCATION_TASK, async ({ data, error }: any) => { } const { locations } = data const lastLoc: Location.LocationObject = locations.at(-1) - console.log("AAAAA", lastLoc) + if (__DEV__) + console.log("Localisation reçue :", lastLoc) store.dispatch(setLastLocation(lastLoc)) const playerId = store.getState().game.playerId if (socket.active && playerId) {