add server error message

This commit is contained in:
Brandon Egger
2023-06-06 22:00:30 -05:00
parent 3cfa29b5b5
commit a05f541713
2 changed files with 8 additions and 2 deletions

View File

@ -52,8 +52,8 @@ const EditResourcePage = (
});
const { mutate } = api.auditoryResource.update.useMutation({
onSuccess: async (data) => {
// todo:
onSuccess: (_data) => {
setServerError(undefined);
},
onError: (error) => setServerError(error.message),
});