Skip to content

Commit

Permalink
fix(jsbattle-server): use proper username for sandbox after changing it
Browse files Browse the repository at this point in the history
  • Loading branch information
jamro committed Jun 20, 2020
1 parent 9bca825 commit 1fbdab5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/jsbattle-server/app/services/UserStore.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ class UserStoreService extends Service {
displayName: displayName,
registered: true
});
if(ctx.meta.user) {
ctx.meta.user.username = username; // eslint-disable-line require-atomic-updates
}

let initCalls = [];
let initChallenges = ctx.params.challenges || [];
Expand Down

0 comments on commit 1fbdab5

Please sign in to comment.