Affichage de la dernière localisation reçue uniquement en développement

This commit is contained in:
Emmy D'Anello 2024-12-19 17:50:41 +01:00
parent 4246266f9f
commit d1cdf8cf6d
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

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