feature/IO-3499-React-19: Bug Fixes / Checkpoint
This commit is contained in:
@@ -48,22 +48,19 @@ export function TtApproveButton({ bodyshop, currentUser, selectedTickets, disabl
|
||||
}
|
||||
});
|
||||
if (insertResponse.errors) {
|
||||
notification.open({
|
||||
type: "error",
|
||||
message: t("timetickets.errors.creating", {
|
||||
notification.error({
|
||||
title: t("timetickets.errors.creating", {
|
||||
message: JSON.stringify(insertResponse.errors)
|
||||
})
|
||||
});
|
||||
} else {
|
||||
notification.open({
|
||||
type: "success",
|
||||
message: t("timetickets.successes.created")
|
||||
notification.success({
|
||||
title: t("timetickets.successes.created")
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
notification.open({
|
||||
type: "error",
|
||||
message: t("timetickets.errors.creating", {
|
||||
notification.error({
|
||||
title: t("timetickets.errors.creating", {
|
||||
message: error.message
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user