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"); toast.success("Data posted successfully");
}, },
onError: (e) => { onError: (e) => {
// @ts-ignore try {
if (e.detail) {
// @ts-ignore // @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"); toast.error("Error posting data");
}, },
}); });