fixed a bug where result would not show if no tags were found

This commit is contained in:
Jack 2020-06-23 19:30:54 +01:00
parent b895819424
commit fec6e1f9cb

View file

@ -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');