add checks for #found, belongs to #14

This commit is contained in:
koksnuss 2020-05-11 14:13:40 +02:00
parent 31137d33e8
commit a7e142f28b

View File

@ -115,7 +115,7 @@ function render_response(td, set) {
td_class = 'rare'; td_class = 'rare';
} else if ([10, 20, 50].includes(Number($(td).attr('value')))) { } else if ([10, 20, 50].includes(Number($(td).attr('value')))) {
td_class = 'brass'; td_class = 'brass';
} else if (set['found_by']) { } else if (set['found'] && set['found_by']) {
td_class = 'found'; td_class = 'found';
} }
@ -129,7 +129,7 @@ function render_response(td, set) {
div_class = set['found_by']; div_class = set['found_by'];
$(td).find('div.coin span').html('').html('x'); $(td).find('div.coin span').html('').html('x');
} }
if (!set['exists']) { if (!set['exists'] || !set['found']) {
$(td).find('div.coin span').html(''); $(td).find('div.coin span').html('');
} }
$(td).removeClass(); $(td).removeClass();