Skip to content

Commit

Permalink
use email as fallback if no contact lastname
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Mar 7, 2020
1 parent 1c230a0 commit 0472ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/export_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def contacts
'fabricaAccountId' => id,
'fabricaId' => id + "-" + email,
'firstName' => firstname,
'lastName' => lastname,
'lastName' => lastname.present? ? lastname : email,
}
end

Expand Down

0 comments on commit 0472ade

Please sign in to comment.