fix again
This commit is contained in:
@@ -177,15 +177,15 @@ window.renderTownDetails = function() {
|
||||
const researchEntries = Object.entries(researchObj).filter(([k, v]) =>
|
||||
k !== 'id' && k !== 'town_id' && (v === true || v === 1 || Number(v) > 0)
|
||||
);
|
||||
let resHtml = '';
|
||||
let researchHtml = '';
|
||||
if (researchEntries.length) {
|
||||
resHtml = researchEntries.map(([k]) =>
|
||||
researchHtml = researchEntries.map(([k]) =>
|
||||
`<div>✓ ${k.replace(/_/g, ' ')}</div>`
|
||||
).join('');
|
||||
} else {
|
||||
resHtml = '<div style="color:#555">Καμία έρευνα</div>';
|
||||
researchHtml = '<div style="color:#555">Καμία έρευνα</div>';
|
||||
}
|
||||
document.getElementById('td-researches').innerHTML = resHtml;
|
||||
document.getElementById('td-researches').innerHTML = researchHtml;
|
||||
|
||||
const unitsObj = t.units || {};
|
||||
let unitsHtml = '';
|
||||
|
||||
Reference in New Issue
Block a user