Fix tec counter

Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
Egor Savkin 2024-12-23 12:51:39 +08:00
parent 4ee4e5fb23
commit 5fdf5f1ea0
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -27,7 +27,7 @@ const count_item_occupied_hp = (item) => {
} }
const count_item_occupied_tec = (item) => { const count_item_occupied_tec = (item) => {
return (item.options_data && item.options_data.tec === false) ? 0 : (item.consumes && item.consumes.tec); return (item.options_data && item.options_data.tec === false) ? 0 : ((item.consumes && item.consumes.tec) || 0);
} }
export const item_occupied_counters = { export const item_occupied_counters = {