Skip to content

Commit d3d0a6f

Browse files
committed
Fetch user and course after login
1 parent 01f2b0a commit d3d0a6f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/commons/application/Application.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ const Application: React.FC = () => {
101101
const token = JSON.parse(message.token.trim());
102102
console.log(`FRONTEND: WebviewStarted: ${token}`);
103103
dispatch(SessionActions.setTokens({accessToken: token.accessToken, refreshToken: token.refreshToken}));
104+
dispatch(SessionActions.fetchUserAndCourse());
104105
}
105106
break;
106107
case MessageTypeNames.Text:

0 commit comments

Comments
 (0)