Skip to content

Commit 74ef6b5

Browse files
Dashboard - Chanced way to retrive userId and userHandle
1 parent 21707fa commit 74ef6b5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/shared/containers/Dashboard/index.jsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ function mapStateToProps(state, props) {
309309
const communities = state.tcCommunities.list;
310310

311311
const userHandle = _.get(state.auth, 'user.handle');
312+
const userId = _.get(state.auth, 'user.userId');
312313
const member = state.members[userHandle] || {};
313314
const achievements = member.achievements || {};
314315
const finances = member.finances || {};
@@ -338,8 +339,8 @@ function mapStateToProps(state, props) {
338339
finances: finances.data,
339340
financesLoading: Boolean(finances.loadingUuid),
340341
financesTimestamp: finances.timestamp,
341-
handle: state.auth.profile.handle,
342-
memberId: state.auth.user.userId,
342+
handle: userHandle,
343+
memberId: userId,
343344
profile: state.auth.profile,
344345
showChallengeFilter: dash.showChallengeFilter,
345346
showEarnings: dash.showEarnings,

0 commit comments

Comments
 (0)