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) {