Skip to content

Commit

Permalink
fix(human-app/frontend/worker/jobs): desynchronize assign job mustati…
Browse files Browse the repository at this point in the history
…on with notification
  • Loading branch information
KacperKoza343 committed Oct 23, 2024
1 parent 6fc255c commit 69f5a57
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ export function useAssignJobMutation(callbacks?: {
mutationFn: assignJob,
onSuccess: async () => {
await queryClient.invalidateQueries();
await callbacks?.onSuccess();
void callbacks?.onSuccess();
},
onError: async (error) => {
await queryClient.invalidateQueries();
await callbacks?.onError(error);
void callbacks?.onError(error);
},
});
}

0 comments on commit 69f5a57

Please sign in to comment.