Inline edit for phone, email, company

This commit is contained in:
Pranav
2026-03-31 14:58:26 +05:30
parent b4b5de9b46
commit b5db3c9512
4 changed files with 147 additions and 4 deletions
@@ -36,7 +36,11 @@ const buildContactFormData = contactParams => {
export const handleContactOperationErrors = error => {
if (error.response?.status === 422) {
throw new DuplicateContactException(error.response.data.attributes);
const exception = new DuplicateContactException(
error.response.data.attributes
);
exception.message = error.response.data.message || exception.message;
throw exception;
} else if (error.response?.data?.message) {
throw new ExceptionWithMessage(error.response.data.message);
} else {