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