diff --git a/frappe/templates/includes/avatar_macro.html b/frappe/templates/includes/avatar_macro.html
index 5db1654ef5..bd59e83bfd 100644
--- a/frappe/templates/includes/avatar_macro.html
+++ b/frappe/templates/includes/avatar_macro.html
@@ -4,7 +4,7 @@
{% if image or user_info.image %}
{% else %}