refac: toast error

This commit is contained in:
Timothy Jaeryang Baek committed 2025-01-20 22:41:32 -08:00
1 parent af48f346f1
commit a863f98c53
52 files changed
+123 -123

No files matched your search

+2 -2
View File
@@ -74,7 +74,7 @@
const addGroupHandler = async (group) => {
const res = await createNewGroup(localStorage.token, group).catch((error) => {
toast.error(error);
toast.error(`${error}`);
return null;
});
@@ -89,7 +89,7 @@
const res = await updateUserDefaultPermissions(localStorage.token, group.permissions).catch(
(error) => {
toast.error(error);
toast.error(`${error}`);
return null;
}
);