Suppression de trains et défis

This commit is contained in:
2024-12-14 15:57:14 +01:00
parent cb1222d9cf
commit 3348979738
4 changed files with 177 additions and 11 deletions

View File

@ -103,7 +103,7 @@ export const useGameSwitchPlayerMutation = ({ auth, updateGameState, onPostSucce
})
}
export const useGameRepairMutation = ({ auth, onPostSuccess, onError }: GameProps) => {
export const useGameRepairMutation = ({ auth, onPostSuccess, onError }: Omit<GameProps, 'updateGameState'>) => {
return useMutation({
mutationFn: async () => {
return fetch(`${process.env.EXPO_PUBLIC_TRAINTRAPE_MOI_SERVER}/game/repair/`, {