Fix user card in notification

This commit is contained in:
jasper 2019-04-01 07:26:13 -07:00
parent 0117f6af9f
commit 4a2f676f2e
3 changed files with 12 additions and 6 deletions

View file

@ -31,7 +31,16 @@ const Notification = {
const highlight = this.$store.state.config.highlight
const user = this.notification.action.user
return highlightStyle(highlight[user.screen_name])
}
},
userInStore () {
return this.$store.getters.findUser(this.notification.action.user.id)
},
user () {
if (this.userInStore) {
return this.userInStore
}
return {}
},
}
}