summaryrefslogtreecommitdiff
path: root/src/client/app/desktop/views/home/user/user.header.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/app/desktop/views/home/user/user.header.vue')
-rw-r--r--src/client/app/desktop/views/home/user/user.header.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/app/desktop/views/home/user/user.header.vue b/src/client/app/desktop/views/home/user/user.header.vue
index 85dcd3ddae..61c3839c14 100644
--- a/src/client/app/desktop/views/home/user/user.header.vue
+++ b/src/client/app/desktop/views/home/user/user.header.vue
@@ -36,8 +36,8 @@
</dl>
</div>
<div class="info">
- <span class="location" v-if="user.host === null && user.profile.location"><fa icon="map-marker"/> {{ user.profile.location }}</span>
- <span class="birthday" v-if="user.host === null && user.profile.birthday"><fa icon="birthday-cake"/> {{ user.profile.birthday.replace('-', $t('year')).replace('-', $t('month')) + $t('day') }} ({{ $t('years-old', { age }) }})</span>
+ <span class="location" v-if="user.host === null && user.location"><fa icon="map-marker"/> {{ user.location }}</span>
+ <span class="birthday" v-if="user.host === null && user.birthday"><fa icon="birthday-cake"/> {{ user.birthday.replace('-', $t('year')).replace('-', $t('month')) + $t('day') }} ({{ $t('years-old', { age }) }})</span>
</div>
<div class="status">
<router-link :to="user | userPage()" class="notes-count"><b>{{ user.notesCount | number }}</b>{{ $t('posts') }}</router-link>
@@ -71,7 +71,7 @@ export default Vue.extend({
},
age(): number {
- return age(this.user.profile.birthday);
+ return age(this.user.birthday);
}
},
mounted() {