refac: toast error

This commit is contained in:
Timothy Jaeryang Baek
2025-01-20 22:41:32 -08:00
parent af48f346f1
commit a863f98c53
52 changed files with 123 additions and 123 deletions
+4 -4
View File
@@ -102,7 +102,7 @@
const res = deleteMessage(localStorage.token, message.channel_id, message.id).catch(
(error) => {
toast.error(error);
toast.error(`${error}`);
return null;
}
);
@@ -118,7 +118,7 @@
const res = updateMessage(localStorage.token, message.channel_id, message.id, {
content: content
}).catch((error) => {
toast.error(error);
toast.error(`${error}`);
return null;
});
}}
@@ -154,7 +154,7 @@
message.id,
name
).catch((error) => {
toast.error(error);
toast.error(`${error}`);
return null;
});
} else {
@@ -180,7 +180,7 @@
const res = addReaction(localStorage.token, message.channel_id, message.id, name).catch(
(error) => {
toast.error(error);
toast.error(`${error}`);
return null;
}
);