This commit is contained in:
Leonabcd123 2026-01-09 14:35:16 +02:00
parent ab4f0fceb5
commit 3b9e119044

View file

@ -151,17 +151,19 @@ const actionModals: Record<Action, SimpleModal> = {
};
}
DB.getSnapshot()?.tags?.forEach((tag) => {
if (tag._id === tagId) {
tag.personalBests = {
time: {},
words: {},
quote: {},
zen: {},
custom: {},
};
}
});
const matchingTag = DB.getSnapshot()?.tags.find(
(tag) => tag._id === tagId,
);
if (matchingTag !== undefined) {
matchingTag.personalBests = {
time: {},
words: {},
quote: {},
zen: {},
custom: {},
};
}
void Settings.update();
return { status: 1, message: `Tag PB cleared` };