Omit currency section if all are disabled

This commit is contained in:
Carlos Fernandez 2025-12-07 19:35:38 -05:00
parent b31ab36029
commit a4899f6598
3 changed files with 24 additions and 40 deletions

View file

@ -89,6 +89,7 @@ export default class DHBaseActorSheet extends DHApplicationMixin(ActorSheetV2) {
value: context.source.system.gold[key]
};
}
context.inventory.hasCurrency = Object.values(context.inventory.currencies).some((c) => c.enabled);
}
return context;