fixed error on logging out

This commit is contained in:
Jack 2021-04-05 18:33:33 +01:00
parent 82d28c860b
commit 19107294fc

View file

@ -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;
}