fixing error messages not being shown properly in user table

This commit is contained in:
orangecoding
2026-05-12 13:24:13 +02:00
parent 0ce93acaf6
commit bcd3042026
2 changed files with 2 additions and 2 deletions

View File

@@ -174,7 +174,7 @@ const JobGrid = () => {
Toast.success('Job status successfully changed');
loadData();
} catch (error) {
Toast.error(error);
Toast.error(error.error);
}
};

View File

@@ -37,7 +37,7 @@ const Users = function Users() {
await actions.jobsData.getJobs();
await actions.user.getUsers();
} catch (error) {
Toast.error(error);
Toast.error(error.error);
setUserIdToBeRemoved(null);
}
};