add checks for #found, belongs to #14
This commit is contained in:
parent
31137d33e8
commit
a7e142f28b
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user