show undefined country code

This commit is contained in:
edmondlang
2023-04-27 00:09:29 +08:00
parent d6f29976c7
commit b3b7b67c66
@@ -16,7 +16,7 @@
<i class="fa fa-address-card fs-12 m-b-5 muted"></i>
</div>
<div class="col p-l-5">
<div class="muted bold fs-10">+{{item.owner.contact.country_code}} {{parseInt(item.owner.contact.phone, 10)}}</div>
<div class="muted bold fs-10">+{{item.owner.contact ? item.owner.contact.country_code : '--'}} {{parseInt(item.owner.contact.phone, 10)}}</div>
</div>
</div>
</div>