Commit a5a8977c authored by Jason Robinson's avatar Jason Robinson

Fix profile rendering for profiles without a handle

parent 6e20047b
Pipeline #1345 passed with stage
in 5 minutes and 24 seconds
......@@ -98,7 +98,7 @@
<div class="d-inline-block ml-3 align-center stamped-profile-info">
<h1>{{ displayName }}</h1>
<h3>
<cite :title="translations.userHandle">{{ profile.handle.length ? profile.handle : profile.fid }}</cite>
<cite :title="translations.userHandle">{{ profileHandle }}</cite>
</h3>
</div>
<div class="text-center">
......@@ -136,6 +136,10 @@ export default Vue.component("profile-stamped-element", {
profile() {
return this.$store.state.application.profile
},
profileHandle() {
return this.profile.handle !== undefined && this.profile.handle.length ?
this.profile.handle : this.profile.fid
},
showProfileButtons() {
return this.$store.state.application.isUserAuthenticated &&
this.profile.id === this.$store.state.application.currentBrowsingProfileId
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment