On envoie des localisations quand on est connecté⋅e, pas l'inverse
This commit is contained in:
@ -22,7 +22,7 @@ export default function GeolocationProvider({ children }: { children: ReactNode
|
||||
|
||||
if (Platform.OS !== "web") {
|
||||
useEffect(() => {
|
||||
if (geolocationsQueue.length === 0 || geolocationMutation.isPending || isAuthValid(auth))
|
||||
if (geolocationsQueue.length === 0 || geolocationMutation.isPending || !isAuthValid(auth))
|
||||
return
|
||||
const locToSend = geolocationsQueue[0]
|
||||
geolocationMutation.mutate(locToSend)
|
||||
|
Reference in New Issue
Block a user