Affichage de la dernière localisation reçue uniquement en développement
This commit is contained in:
parent
4246266f9f
commit
d1cdf8cf6d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user