Update _details.html.erb

This commit is contained in:
2016-08-05 09:07:50 -04:00
committed by GitHub
parent 3c3b4da313
commit d3be59fbc5

View File

@@ -12,12 +12,12 @@
<tr> <tr>
<th>Primary Phone</th> <th>Primary Phone</th>
<td><%= number_to_phone(customer.primary_phone.gsub(/[^\d]/, '').to_i, area_code: true) %></td> <td><%= number_to_phone(customer.primary_phone.gsub(/[^\d]/, '').to_i, area_code: true) if customer.primary_phone %></td>
</tr> </tr>
<tr> <tr>
<th>Mobile Phone</th> <th>Mobile Phone</th>
<td><%= number_to_phone(customer.mobile_phone.gsub(/[^\d]/, '').to_i, area_code: true) %></td> <td><%= number_to_phone(customer.mobile_phone.gsub(/[^\d]/, '').to_i, area_code: true) if customer.mobile_phone %></td>
</tr> </tr>
<tr> <tr>