Correction envoi dernière position
This commit is contained in:
@ -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) }
|
||||
|
Reference in New Issue
Block a user