Skip to content

Commit 6083d0e

Browse files
committed
(forgot to push) crit bug fixes
1 parent b4a6a0b commit 6083d0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/storage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 () {

0 commit comments

Comments
 (0)