feature/IO-3499-React-19: Bug Fixes / Checkpoint
This commit is contained in:
@@ -59,8 +59,8 @@ export function ContractCreatePageContainer({ bodyshop, setBreadcrumbs, setSelec
|
||||
if (!result.errors) {
|
||||
//Update the courtesy car to have the damage.
|
||||
logImEXEvent("courtesy_car_contract_created", {});
|
||||
notification["success"]({
|
||||
message: t("contracts.successes.saved")
|
||||
notification.success({
|
||||
title: t("contracts.successes.saved")
|
||||
});
|
||||
|
||||
//Intake the job if required
|
||||
@@ -76,8 +76,8 @@ export function ContractCreatePageContainer({ bodyshop, setBreadcrumbs, setSelec
|
||||
}
|
||||
});
|
||||
if (result2.errors) {
|
||||
notification["error"]({
|
||||
message: t("jobs.errors.saving", {
|
||||
notification.error({
|
||||
title: t("jobs.errors.saving", {
|
||||
error: JSON.stringify(!result2.errors)
|
||||
})
|
||||
});
|
||||
@@ -89,15 +89,15 @@ export function ContractCreatePageContainer({ bodyshop, setBreadcrumbs, setSelec
|
||||
form.resetFields();
|
||||
history(`/manage/courtesycars/contracts/${result.data.insert_cccontracts.returning[0].id}`);
|
||||
} else {
|
||||
notification["error"]({
|
||||
message: t("contracts.errors.saving", {
|
||||
notification.error({
|
||||
title: t("contracts.errors.saving", {
|
||||
error: JSON.stringify(!result.errors)
|
||||
})
|
||||
});
|
||||
}
|
||||
} else {
|
||||
notification["error"]({
|
||||
message: t("contracts.errors.selectjobandcar")
|
||||
notification.error({
|
||||
title: t("contracts.errors.selectjobandcar")
|
||||
});
|
||||
}
|
||||
setLoading(false);
|
||||
|
||||
Reference in New Issue
Block a user