diff --git a/app/controllers/export_controller.rb b/app/controllers/export_controller.rb index dccc16f69..244d8607b 100644 --- a/app/controllers/export_controller.rb +++ b/app/controllers/export_controller.rb @@ -51,7 +51,7 @@ def contacts 'fabricaAccountId' => id, 'fabricaId' => id + "-" + email, 'firstName' => firstname, - 'lastName' => lastname, + 'lastName' => lastname.present? ? lastname : email, } end