Fix leaderboard submission display issue: update frontend to correctly handle score vs points
This commit is contained in:
@@ -235,7 +235,7 @@ class Scoresheet {
|
||||
this.leaderboardData = {
|
||||
songId: songId,
|
||||
difficulty: results.difficulty,
|
||||
scoreObj: Object.assign({}, results)
|
||||
scoreObj: Object.assign({ score: results.points }, results)
|
||||
}
|
||||
// Clean up scoreObj
|
||||
if (this.leaderboardData.scoreObj) {
|
||||
@@ -1025,7 +1025,7 @@ class Scoresheet {
|
||||
this.leaderboardData = {
|
||||
songId: songId,
|
||||
difficulty: difficulty,
|
||||
scoreObj: Object.assign({}, this.resultsObj)
|
||||
scoreObj: Object.assign({ score: this.resultsObj.points }, this.resultsObj)
|
||||
}
|
||||
this.leaderboardSubmitted = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user