Correction envoi dernière position

This commit is contained in:
2024-12-13 00:32:52 +01:00
parent 1241669c35
commit 30a687018f
3 changed files with 8 additions and 4 deletions

View File

@ -13,8 +13,8 @@ export default function GeolocationProvider({ children }: { children: ReactNode
const unqueueLocation = useUnqueueLocation()
const geolocationMutation = useGeolocationMutation({
auth,
onPostSuccess: ({ data, variables: location }) => {
unqueueLocation(location)
onPostSuccess: (data) => {
unqueueLocation(data)
geolocationMutation.reset()
},
onError: ({ response, error }) => { console.error(response, error) }