Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 02c0cae

Browse files
committed
build: production
1 parent 0e369af commit 02c0cae

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

deploy/production/web.tar.gz

-52 Bytes
Binary file not shown.

stores/AccountStore/index.js

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ const AccountStore = t
3636
},
3737

3838
get subscribedCommunities() {
39-
const {
40-
user: { subscribedCommunities },
41-
} = self
39+
const { user: { subscribedCommunities } } = self
4240
return {
4341
...stripMobx(subscribedCommunities),
4442
}
@@ -51,7 +49,7 @@ const AccountStore = t
5149
afterAttach() {
5250
const user = BStore.get('user')
5351
if (user) {
54-
console.log('before afterCreate: ', user)
52+
console.log('before afterAttach: ', user)
5553
self.updateAccount(user)
5654
}
5755
},
@@ -81,11 +79,7 @@ const AccountStore = t
8179
self.user.subscribedCommunities = data
8280
},
8381
addSubscribedCommunity(community) {
84-
const {
85-
user: {
86-
subscribedCommunities: { entries },
87-
},
88-
} = self
82+
const { user: { subscribedCommunities: { entries } } } = self
8983

9084
self.user.subscribedCommunities.entries = R.insert(0, community, entries)
9185
self.user.subscribedCommunities.totalCount += 1
@@ -94,11 +88,7 @@ const AccountStore = t
9488
},
9589

9690
removeSubscribedCommunity(community) {
97-
const {
98-
user: {
99-
subscribedCommunities: { entries },
100-
},
101-
} = self
91+
const { user: { subscribedCommunities: { entries } } } = self
10292

10393
const index = R.findIndex(R.propEq('id', community.id), entries)
10494
self.user.subscribedCommunities.entries = R.remove(index, 1, entries)

0 commit comments

Comments
 (0)