fix: error message from backend

This commit is contained in:
Nicolas Meienberger
2025-09-27 12:00:32 +02:00
parent ca7c6c7ecf
commit 9f3fb8a302
4 changed files with 13 additions and 7 deletions

View File

@@ -26,6 +26,9 @@ export const HealthchecksCard = ({ volume }: Props) => {
}
toast.success("Health check completed", { description: "The volume is healthy." });
},
onError: (error) => {
toast.error("Health check failed", { description: error.message });
},
});
const toggleAutoRemount = useMutation({
@@ -35,6 +38,9 @@ export const HealthchecksCard = ({ volume }: Props) => {
description: `Auto remount is now ${d.volume.autoRemount ? "enabled" : "paused"}.`,
});
},
onError: (error) => {
toast.error("Update failed", { description: error.message });
},
});
return (