fix: set contact as primary not working

This commit is contained in:
Shariq Ansari 2024-09-28 15:10:09 +05:30
parent 01cbdb9ba9
commit c9f3fc8e6d
2 changed files with 2 additions and 2 deletions

View File

@ -607,7 +607,7 @@ function contactOptions(contact) {
options.push({
label: __('Set as Primary Contact'),
icon: h(SuccessIcon, { class: 'h-4 w-4' }),
onClick: () => setPrimaryContact(contact),
onClick: () => setPrimaryContact(contact.name),
})
}

View File

@ -522,7 +522,7 @@ function contactOptions(contact) {
options.push({
label: __('Set as Primary Contact'),
icon: h(SuccessIcon, { class: 'h-4 w-4' }),
onClick: () => setPrimaryContact(contact),
onClick: () => setPrimaryContact(contact.name),
})
}