manual lint --fix

This commit is contained in:
Henry Jameson 2025-02-04 15:23:21 +02:00
commit d1ea589531
76 changed files with 187 additions and 184 deletions

View file

@ -427,7 +427,7 @@ export const useInterfaceStore = defineStore('interface', {
const cleanDirectives = Object.fromEntries(
Object
.entries(x.directives)
.filter(([k, v]) => k)
.filter(([k]) => k)
)
return { name: x.variant, ...cleanDirectives }

View file

@ -8,13 +8,13 @@ export const useListsStore = defineStore('lists', {
allListsObject: {}
}),
getters: {
findListTitle (state) {
findListTitle () {
return (id) => {
if (!this.allListsObject[id]) return
return this.allListsObject[id].title
}
},
findListAccounts (state) {
findListAccounts () {
return (id) => [...this.allListsObject[id].accountIds]
}
},

View file

@ -47,7 +47,7 @@ export const usePollsStore = defineStore('polls', {
this.trackedPolls[pollId] = 0
}
},
votePoll ({ id, pollId, choices }) {
votePoll ({ pollId, choices }) {
return window.vuex.state.api.backendInteractor.vote({ pollId, choices }).then(poll => {
this.mergeOrAddPoll(poll)
return poll