mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-11 16:24:12 +08:00
fixed error on logging out
This commit is contained in:
parent
82d28c860b
commit
19107294fc
1 changed files with 6 additions and 2 deletions
|
@ -17,8 +17,12 @@ export function getSnapshot() {
|
|||
}
|
||||
|
||||
export function setSnapshot(newSnapshot) {
|
||||
delete newSnapshot.banned;
|
||||
delete newSnapshot.verified;
|
||||
try {
|
||||
delete newSnapshot.banned;
|
||||
} catch {}
|
||||
try {
|
||||
delete newSnapshot.verified;
|
||||
} catch {}
|
||||
dbSnapshot = newSnapshot;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue