Skip to content

Commit

Permalink
User info to show when hovering also on user name and address
Browse files Browse the repository at this point in the history
  • Loading branch information
AtanasKrondev committed Apr 14, 2021
1 parent 4c0bbb6 commit ae3a697
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/tipRecords/AuthorAndDate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
},
}"
class="router-link"
@mouseover.native="hoverDebounced = true"
@mouseleave.native="hoverDebounced = false"
>
<div
class="avatar-wrapper"
@mouseover="hoverDebounced = true"
@mouseleave="hoverDebounced = false"
>
<Avatar :address="address" />
<Transition name="fade">
Expand Down Expand Up @@ -69,8 +69,8 @@ export default {
},
},
async mounted() {
const { preferredChainName } = await Backend.getProfile(this.address);
this.name = preferredChainName;
const profile = await Backend.getProfile(this.address);
this.name = profile ? profile.preferredChainName : null;
},
};
</script>
Expand Down

0 comments on commit ae3a697

Please sign in to comment.