mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-11 00:03:44 +08:00
fixed snapshot not having name
This commit is contained in:
parent
048b2f7a30
commit
79c9aef4bb
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,7 @@ export async function db_getUserSnapshot() {
|
|||
let snap = {
|
||||
results: undefined,
|
||||
personalBests: {},
|
||||
name: undefined,
|
||||
tags: [],
|
||||
favouriteThemes: [],
|
||||
lbMemory: {
|
||||
|
@ -77,6 +78,7 @@ export async function db_getUserSnapshot() {
|
|||
if (data.personalBests !== undefined) {
|
||||
snap.personalBests = data.personalBests;
|
||||
}
|
||||
snap.name = data.name;
|
||||
snap.discordId = data.discordId;
|
||||
snap.pairingCode =
|
||||
data.discordPairingCode == null ? undefined : data.discordPairingCode;
|
||||
|
|
Loading…
Reference in a new issue