Skip to content

Commit f41574f

Browse files
authored
fix profile photo
1 parent 646b193 commit f41574f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/partials/topbar.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
<button class="btn user-action-dropdown dropdown-toggle none-border">
2121
{{ name|raw }}
2222
</button>
23-
{% if auth_user().file is not empty %}
24-
{{ img(auth_user().file).width(47).height(47).class('rounded-circle')|raw }}
23+
{% if auth_user().getAttribute('file_id') %}
24+
{{ img(auth_user().file().first()).width(47).height(47).class('rounded-circle')|raw }}
2525
{% else %}
2626
{{ img('theme::img/no-avatar.svg').width(47).class('rounded-circle')|raw }}
2727
{% endif %}

0 commit comments

Comments
 (0)