From ed016c534e6771df4c4119c904fde1252c630c47 Mon Sep 17 00:00:00 2001 From: Matheus Clemente Date: Sun, 13 Nov 2022 02:27:53 -0300 Subject: [PATCH] Update SystemProvider.js Fix https://github.com/mclemente/party-overview/issues/57 --- module/SystemProvider.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/SystemProvider.js b/module/SystemProvider.js index 6b76063..e03fbd3 100644 --- a/module/SystemProvider.js +++ b/module/SystemProvider.js @@ -573,7 +573,7 @@ export class dnd5eProvider extends SystemProvider { }, experience: { value: data.details.xp.value || 0, max: data.details.xp.max }, // background - background: Object.prototype.hasOwnProperty.call(data.details, "trait")(obj, "trait") + background: Object.prototype.hasOwnProperty.call(data.details, "trait") ? { trait: this.htmlDecode(data.details.trait), ideal: this.htmlDecode(data.details.ideal), @@ -1352,8 +1352,8 @@ export class cyphersystemProvider extends SystemProvider { additional: data.pools.additional, additionalPool: { active: data.settings.general.additionalPool.active, - name: data.settings.general.additionalPool.label, - pool: data.pools.additionalPool, + name: data.settings.general.additionalPool.label, + pool: data.pools.additionalPool, }, tier: data.basic.tier, effort: data.basic.effort, @@ -1368,7 +1368,7 @@ export class cyphersystemProvider extends SystemProvider { return [ actors, { - showAdditional: actors.some(actor => actor.additionalPool.active), + showAdditional: actors.some((actor) => actor.additionalPool.active), }, ]; }