summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-11-02 12:49:30 +0100
committerCarl Schwan <carl@carlschwan.eu>2022-11-02 12:49:30 +0100
commit89472dc5ad5f764e785f1dbc0144623cc3ef18b0 (patch)
treee805a7b012187041b3140b3cc360660a2b56d033
parent21604e11d701c67d9fc465be6d4cea271c13cff4 (diff)
Reformat some code
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
-rw-r--r--src/store/account.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/store/account.js b/src/store/account.js
index a54e4ae1..2174317d 100644
--- a/src/store/account.js
+++ b/src/store/account.js
@@ -30,7 +30,14 @@ const state = {
accountIdMap: {},
}
const addAccount = (state, { actorId, data }) => {
- Vue.set(state.accounts, actorId, Object.assign({ followersList: [], followingList: [], details: { following: false, follower: false } }, state.accounts[actorId], data))
+ Vue.set(state.accounts, actorId, Object.assign({
+ followersList: [],
+ followingList: [],
+ details: {
+ following: false,
+ follower: false,
+ }
+ }, state.accounts[actorId], data))
Vue.set(state.accountIdMap, data.account, data.id)
}
const _getActorIdForAccount = (account) => state.accountIdMap[account]