Add pb requirement

This commit is contained in:
Leonabcd123 2026-01-09 21:54:30 +02:00
parent f9d9c86ce5
commit 7dfb978b1a

View file

@ -899,7 +899,7 @@ export async function updateLocalTagPB<M extends Mode>(
};
getSnapshot()?.results?.forEach((result) => {
if (result.tags.includes(tagId)) {
if (result.tags.includes(tagId) && result.wpm > pb.wpm) {
if (
result.mode === mode &&
result.mode2 === mode2 &&