forked from M-Labs/web2019
Fix tec counter
Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
parent
4ee4e5fb23
commit
5fdf5f1ea0
File diff suppressed because one or more lines are too long
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user