fixed website freezing for not signed in users

This commit is contained in:
Miodec 2022-10-13 21:26:49 +02:00
parent 69b02569ee
commit bfc543cbc9

View file

@ -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) {