IO-948 Vendor add to phonebook

This commit is contained in:
Patrick Fic
2021-04-28 07:37:07 -07:00
parent 2e7ecfebe9
commit f4ec377da4
10 changed files with 295 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ function PhonebookFormContainer({ refetch, bodyshop }) {
if (!result.errors) {
notification["success"]({
message: t("Phonebook.successes.saved"),
message: t("phonebook.successes.saved"),
});
if (refetch) await refetch();
@@ -87,7 +87,9 @@ function PhonebookFormContainer({ refetch, bodyshop }) {
setFormLoading(false);
} else {
notification["error"]({
message: t("Phonebook.errors.saving"),
message: t("phonebook.errors.saving", {
error: JSON.stringify(result.errors),
}),
});
setFormLoading(false);