Only show user photo if set

This commit is contained in:
Jonathan Reinink 2019-08-09 13:09:37 -04:00
parent a4bf54f9fa
commit 4b8849ac43
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<span class="text-indigo-light font-medium">/</span>
{{ form.first_name }} {{ form.last_name }}
</h1>
<img class="block w-8 h-8 rounded-full ml-4" :src="user.photo">
<img v-if="user.photo" class="block w-8 h-8 rounded-full ml-4" :src="user.photo">
</div>
<trashed-message v-if="user.deleted_at" class="mb-6" @restore="restore">
This user has been deleted.