client lint first pass

This commit is contained in:
Matteo Pagliazzi
2019-10-11 20:35:49 +02:00
parent 07cffe9e16
commit a625e83b53
104 changed files with 1053 additions and 893 deletions

View File

@@ -137,9 +137,6 @@ export default {
page: 0,
};
},
mounted () {
this.loadChallenges();
},
computed: {
...mapState({ user: 'user.data' }),
filteredChallenges () {
@@ -162,6 +159,9 @@ export default {
});
},
},
mounted () {
this.loadChallenges();
},
methods: {
updateSearch (eventData) {
this.search = eventData.searchTerm;
@@ -188,7 +188,7 @@ export default {
let owned = '';
// @TODO: we skip ownership === 2 because it is the same as === 0 right now
if (this.filters.ownership && this.filters.ownership.length === 1) {
owned = this.filters.ownership[0];
[owned] = this.filters.ownership;
}
const challenges = await this.$store.dispatch('challenges:getUserChallenges', {