feature/IO-3499-React-19: Bug Fixes / Checkpoint
This commit is contained in:
@@ -51,16 +51,14 @@ export function TimeTicketsCommit({ currentUser, timetickets, disabled, loadingC
|
||||
}
|
||||
});
|
||||
if (result.errors) {
|
||||
notification.open({
|
||||
type: "error",
|
||||
message: t("timetickets.errors.creating", {
|
||||
notification.error({
|
||||
title: t("timetickets.errors.creating", {
|
||||
message: JSON.stringify(result.errors)
|
||||
})
|
||||
});
|
||||
} else {
|
||||
notification.open({
|
||||
type: "success",
|
||||
message: t("timetickets.successes.committed")
|
||||
notification.success({
|
||||
title: t("timetickets.successes.committed")
|
||||
});
|
||||
if (completedCallback) completedCallback([]);
|
||||
if (loadingCallback) loadingCallback(false);
|
||||
|
||||
Reference in New Issue
Block a user