mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 15:26:15 +08:00
fixed error on logging out
This commit is contained in:
parent
82d28c860b
commit
19107294fc
|
@ -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