Skip to content

Commit

Permalink
Fix contact import
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Aug 20, 2024
1 parent 047c1ea commit 2ec66ee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/crm/src/contacts/useContactImport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,12 @@ export function useContactImport() {
phone_2_number,
phone_2_type,
background,
first_seen: new Date(first_seen),
last_seen: new Date(last_seen),
first_seen: first_seen
? new Date(first_seen).toISOString()
: undefined,
last_seen: last_seen
? new Date(last_seen).toISOString()
: undefined,
has_newsletter,
status,
company_id: company.id,
Expand Down

0 comments on commit 2ec66ee

Please sign in to comment.