mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-09 12:56:07 +08:00
fixed a bug where result would not show if no tags were found
This commit is contained in:
parent
b895819424
commit
fec6e1f9cb
1 changed files with 9 additions and 7 deletions
|
|
@ -874,13 +874,15 @@ function showResult(difficultyFailed = false) {
|
|||
}
|
||||
|
||||
let tagsText = "";
|
||||
dbSnapshot.tags.forEach(tag => {
|
||||
// dbSnapshot.tags.forEach(snaptag => {
|
||||
if(tag.active === true){
|
||||
tagsText += "<br>"+tag.name;
|
||||
}
|
||||
// })
|
||||
})
|
||||
try{
|
||||
dbSnapshot.tags.forEach(tag => {
|
||||
if(tag.active === true){
|
||||
tagsText += "<br>"+tag.name;
|
||||
}
|
||||
})
|
||||
}catch(e){
|
||||
|
||||
}
|
||||
|
||||
if(tagsText == ""){
|
||||
$("#result .stats .tags").addClass('hidden');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue