This commit is contained in:
bootunloader
2024-09-22 10:06:52 +03:00
parent ee40ce0a80
commit 1c56dc079b

View File

@@ -62,12 +62,15 @@
toast.success("Data posted successfully");
},
onError: (e) => {
// @ts-ignore
if (e.detail) {
try {
// @ts-ignore
return toast.error(e.detail);
if (e.detail) {
// @ts-ignore
return toast.error(e.detail);
}
} catch (e) {
console.error(e);
}
console.error(e);
toast.error("Error posting data");
},
});