diff --git a/app/views/customers/_details.html.erb b/app/views/customers/_details.html.erb index e3f63e4..3b77005 100644 --- a/app/views/customers/_details.html.erb +++ b/app/views/customers/_details.html.erb @@ -12,12 +12,12 @@ Primary Phone - <%= number_to_phone(customer.primary_phone.gsub(/[^\d]/, '').to_i, area_code: true) %> + <%= number_to_phone(customer.primary_phone.gsub(/[^\d]/, '').to_i, area_code: true) if customer.primary_phone %> Mobile Phone - <%= number_to_phone(customer.mobile_phone.gsub(/[^\d]/, '').to_i, area_code: true) %> + <%= number_to_phone(customer.mobile_phone.gsub(/[^\d]/, '').to_i, area_code: true) if customer.mobile_phone %>