Skip to content

Commit 4703589

Browse files
Fix Dashboard auth
1 parent 538bf84 commit 4703589

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/shared/containers/Dashboard/index.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ export class DashboardPageContainer extends React.Component {
7070

7171
if (challengeFilter) switchChallengeFilter('');
7272

73-
const user = decodeToken(tokenV3);
74-
getMemberResources(user.userId, tokenV3);
73+
if (this.authCheck(tokenV3)) {
74+
const user = decodeToken(tokenV3);
75+
getMemberResources(user.userId, tokenV3);
76+
}
7577
}
7678

7779
componentWillReceiveProps(nextProps) {

0 commit comments

Comments
 (0)