new feature: Error code 507 will return if you want to delete a loan that has not been returned

This commit is contained in:
2026-04-24 18:44:07 +02:00
parent 56e073244f
commit 5442f2f1f3
7 changed files with 40 additions and 4 deletions
+8
View File
@@ -84,6 +84,14 @@ export const MyLoansPage = () => {
});
if (!res.ok) {
if (res.status === 507) {
setMsgStatus("error");
setMsgTitle(t("error"));
setMsgDescription(t("error-deleting-loan-507"));
setIsMsg(true);
return;
}
setMsgStatus("error");
setMsgTitle(t("error"));
setMsgDescription(t("error-deleting-loan"));