Improve conditionLabel method in BranchView component to handle edge cases and ensure accurate state representation. Added checks for null and undefined values, and clarified the return value for zero or negative conditions.

This commit is contained in:
Torsten Schulz (local)
2025-12-22 14:54:51 +01:00
parent d1b683344e
commit ea468c9878
7 changed files with 53 additions and 3 deletions

View File

@@ -2645,6 +2645,7 @@ class FalukantService extends BaseService {
mayProduce: director.mayProduce,
maySell: director.maySell,
mayStartTransport: director.mayStartTransport,
mayRepairVehicles: director.mayRepairVehicles,
region: director.character.region?.name || null,
wishedIncome,
},