Removed unused voted var from author component

This commit is contained in:
Grzegorz Leoniec 2019-03-05 17:37:48 +01:00
parent 8792f02932
commit 29dac5c5a3
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377

View File

@ -141,21 +141,12 @@ export default {
trunc: { type: Number, default: null },
showAuthorPopover: { type: Boolean, default: true }
},
data() {
return {
voted: false
}
},
computed: {
itsMe() {
return this.author.slug === this.$store.getters['auth/user'].slug
},
fanCount() {
let count = Number(this.author.followedByCount) || 0
if (this.voted) {
// NOTE: this is used for presentation
count += 1
}
return count
},
author() {