mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-21 15:56:24 +08:00
fixed website freezing for not signed in users
This commit is contained in:
parent
69b02569ee
commit
bfc543cbc9
|
@ -402,7 +402,7 @@ export async function updateCrown(): Promise<void> {
|
|||
|
||||
function updateTags(dontSave: boolean): void {
|
||||
const activeTags: MonkeyTypes.Tag[] = [];
|
||||
const userTagsCount = DB.getSnapshot().tags?.length ?? 0;
|
||||
const userTagsCount = DB.getSnapshot()?.tags?.length ?? 0;
|
||||
try {
|
||||
DB.getSnapshot().tags?.forEach((tag) => {
|
||||
if (tag.active === true) {
|
||||
|
|
Loading…
Reference in a new issue