mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-01 01:05:06 +08:00
fixed tags always showing as pb
This commit is contained in:
parent
e2ef89bc7e
commit
2637094c5c
1 changed files with 5 additions and 1 deletions
|
@ -460,7 +460,11 @@ function updateTags(dontSave: boolean): void {
|
|||
$("#result .stats .tags .bottom").append(`
|
||||
<div tagid="${tag._id}" aria-label="PB: ${tpb}" data-balloon-pos="up">${tag.display}<i class="fas fa-crown hidden"></i></div>
|
||||
`);
|
||||
if (Config.mode != "quote" && !dontSave) {
|
||||
if (
|
||||
Config.mode != "quote" &&
|
||||
!dontSave &&
|
||||
(await Misc.getFunbox(result.funbox ?? ""))?.canGetPb === true
|
||||
) {
|
||||
if (tpb < result.wpm) {
|
||||
//new pb for that tag
|
||||
DB.saveLocalTagPB(
|
||||
|
|
Loading…
Reference in a new issue