mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-06 05:43:47 +08:00
fixed typing stats not read from the database
This commit is contained in:
parent
fe38ca296a
commit
aabfc923cf
1 changed files with 5 additions and 3 deletions
|
@ -60,9 +60,11 @@ export async function initSnapshot() {
|
|||
snap.personalBests = userData.personalBests;
|
||||
snap.banned = userData.banned;
|
||||
snap.verified = userData.verified;
|
||||
if (userData.globalStats) {
|
||||
snap.globalStats = userData.globalStats;
|
||||
}
|
||||
snap.globalStats = {
|
||||
time: userData.timeTyping,
|
||||
started: userData.startedTests,
|
||||
completed: userData.completedTests,
|
||||
};
|
||||
snap.favouriteThemes =
|
||||
userData.favouriteThemes === undefined ? [] : userData.favouriteThemes;
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue