File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class Storage extends ScratchStorage {
6363 this . customAchievements = customAchievements ;
6464 }
6565 async loadCustomAchievementData ( ) {
66- const accessToken = await this . loadAccessToken ( ) ;
66+ const accessToken = ( await this . loadAccessToken ( ) ) . token ;
6767 const customAchievements = this . customAchievements ? this . customAchievements : { } ;
6868 return { accessToken, customAchievements} ;
6969 }
@@ -95,7 +95,7 @@ class Storage extends ScratchStorage {
9595 this . projectToken = creds . token ;
9696 this . username = creds . username ;
9797 // eslint-disable-next-line require-atomic-updates
98- window . CollaborationUsername = creds . username ;
98+ window . CollaborationUsername = creds ? .username ;
9999 return creds ;
100100 }
101101 async getProjectToken ( ) {
You can’t perform that action at this time.
0 commit comments