Stockage du choix de précision de géolocalisation

This commit is contained in:
2024-12-19 17:33:17 +01:00
parent 590539a979
commit 956e9b6ffd
4 changed files with 20 additions and 1 deletions

View File

@ -18,6 +18,7 @@ TaskManager.defineTask(LOCATION_TASK, async ({ data, error }: any) => {
}
const { locations } = data
const lastLoc: Location.LocationObject = locations.at(-1)
console.log("AAAAA", lastLoc)
store.dispatch(setLastLocation(lastLoc))
const playerId = store.getState().game.playerId
if (socket.active && playerId) {