fix: iterate over valid variable
diff --git a/erpnext/public/js/templates/contact_list.html b/erpnext/public/js/templates/contact_list.html
index c4bc04f..a90580f 100644
--- a/erpnext/public/js/templates/contact_list.html
+++ b/erpnext/public/js/templates/contact_list.html
@@ -19,9 +19,9 @@
{% if(contact_list[i].phone) { %}
{%= __("Phone ") %}: <b>{%= contact_list[i].phone %}</b><br>
{% endif %}
- {% if(contact_list[i].phones) { %}
- {% for(var j=0, k=contact_list[i].phones.length; j<k; j++) { %}
- {%= __("Phone ") %}: {%= contact_list[i].phones[j].phone %}<br>
+ {% if(contact_list[i].phone_nos) { %}
+ {% for(var j=0, k=contact_list[i].phone_nos.length; j<k; j++) { %}
+ {%= __("Phone ") %}: {%= contact_list[i].phone_nos[j].phone %}<br>
{% } %}
{% endif %}
</p>