Corrected noPlayers condition

This commit is contained in:
WBHarry 2025-12-24 01:05:49 +01:00
parent 9cb014888b
commit 23c4dbcaac
2 changed files with 2 additions and 1 deletions

View file

@ -51,6 +51,7 @@ export default class OwnershipSelection extends HandlebarsApplicationMixin(Appli
return acc; return acc;
}, {}); }, {});
context.showOwnership = Boolean(Object.keys(context.ownership).length);
return context; return context;
} }

View file

@ -1,5 +1,5 @@
<div class="ownership-outer-container"> <div class="ownership-outer-container">
{{#if ownership.length}} {{#if showOwnership}}
<ul class="ownership-list"> <ul class="ownership-list">
{{#each ownership as |player id|}} {{#each ownership as |player id|}}
<li class="ownership-container"> <li class="ownership-container">