fix: Call popup avatar

Avoid getting session users image if customer doc has no image
This commit is contained in:
Suraj Shetty 2019-07-10 10:39:43 +05:30 committed by GitHub
parent 62911ec198
commit 838697261d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,7 @@ class CallPopup {
});
wrapper.append(`
<div class="caller-info flex">
${frappe.avatar(null, 'avatar-xl', contact.name, contact.image)}
${frappe.avatar(null, 'avatar-xl', contact.name, contact.image || '')}
<div>
<h5>${contact_name}</h5>
<div>${contact.mobile_no || ''}</div>