diff --git a/app/routines/newflow/create_or_update_salesforce_lead.rb b/app/routines/newflow/create_or_update_salesforce_lead.rb index ec2eb2849..d186fc30a 100644 --- a/app/routines/newflow/create_or_update_salesforce_lead.rb +++ b/app/routines/newflow/create_or_update_salesforce_lead.rb @@ -61,9 +61,9 @@ def exec(user:) if user.salesforce_lead_id - lead = OpenStax::Salesforce::Remote::Lead.find_by(email: "#{user.best_email_address_for_salesforce}") + lead = OpenStax::Salesforce::Remote::Lead.find_by(email: user.best_email_address_for_salesforce) else - lead = OpenStax::Salesforce::Remote::Lead.new(email: "#{user.best_email_address_for_salesforce}") + lead = OpenStax::Salesforce::Remote::Lead.new(email: user.best_email_address_for_salesforce) end lead.first_name = user.first_name