diff --git a/client/src/components/owner-detail-form/owner-detail-form.container.jsx b/client/src/components/owner-detail-form/owner-detail-form.container.jsx index fdf2df339..d1f34b82b 100644 --- a/client/src/components/owner-detail-form/owner-detail-form.container.jsx +++ b/client/src/components/owner-detail-form/owner-detail-form.container.jsx @@ -25,14 +25,14 @@ function OwnerDetailFormContainer({ owner, refetch }) { }); console.log(result); if (result.errors) { - notification["error"]({ + notification.error({ message: t("owners.errors.deleting", { error: JSON.stringify(result.errors) }) }); setLoading(false); } else { - notification["success"]({ + notification.success({ message: t("owners.successes.delete") }); setLoading(false); @@ -47,7 +47,7 @@ function OwnerDetailFormContainer({ owner, refetch }) { }); if (!!result.errors) { - notification["error"]({ + notification.error({ message: t("owners.errors.saving", { error: JSON.stringify(result.errors) }) @@ -56,7 +56,7 @@ function OwnerDetailFormContainer({ owner, refetch }) { return; } - notification["success"]({ + notification.success({ message: t("owners.successes.save") });