Skip to content

Commit

Permalink
Fix(crm): Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
arimet committed Aug 5, 2024
1 parent 0ac9738 commit 144df78
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/contacts/useContactImport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ export function useContactImport() {
gender,
title,
email,
phone_1_number: phoneNumber1Type,
phone_1_type: phoneNumber1Number,
phone_2_number: phoneNumber2Type,
phone_2_type: phoneNumber2Number,
phone_1_number,
phone_1_type,
phone_2_number,
phone_2_type,
background,
acquisition,
first_seen,
Expand Down Expand Up @@ -168,10 +168,10 @@ export function useContactImport() {
gender,
title,
email,
phone_1_number: phoneNumber1Number,
phone_1_type: phoneNumber1Type,
phone_2_number: phoneNumber2Number,
phone_2_type: phoneNumber2Type,
phone_1_number,
phone_1_type,
phone_2_number,
phone_2_type,
background,
acquisition,
first_seen: new Date(first_seen),
Expand Down
2 changes: 1 addition & 1 deletion src/dataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export const dataProvider = withLifecycleCallbacks(
'company_name',
'title',
'email',
'phone_2_number',
'phone_1_number',
'phone_2_number',
'background',
])(params);
Expand Down
1 change: 0 additions & 1 deletion src/misc/getCompanyAvatar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export async function getCompanyAvatar(record: Partial<Company>): Promise<{
src: string;
title: string;
} | null> {
console.log('Getting avatar for company', record);
if (!record.website) {
return null;
}
Expand Down

0 comments on commit 144df78

Please sign in to comment.