Skip to content

Commit

Permalink
fix: custom fields are being removed when resolving conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusbsilva137 committed Nov 18, 2024
1 parent 7638d07 commit 6a1b7c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ const ReviewContactModal = ({ contact, onCancel }: ReviewContactModalProps) => {

const editContact = useEditContact(['getContactById']);

const handleConflicts = async ({ name, contactManager, ...customField }: HandleConflictsPayload) => {
const handleConflicts = async ({ name, contactManager, ...customFields }: HandleConflictsPayload) => {
const payload = {
name,
contactManager,
customFields: { ...customField },
...(customFields && { ...customFields }),
wipeConflicts: true,
};

Expand Down

0 comments on commit 6a1b7c8

Please sign in to comment.