From d3be59fbc5d03ba85170911621fa17df628151e6 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 5 Aug 2016 09:07:50 -0400 Subject: [PATCH] Update _details.html.erb --- app/views/customers/_details.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 %>