Browse Source

fix stat input deleting 0-required stats inrequirements.

master
Gisle Aune 2 years ago
parent
commit
9259609efe
  1. 2
      frontend/src/lib/components/controls/StatInput.svelte

2
frontend/src/lib/components/controls/StatInput.svelte

@ -37,7 +37,7 @@
for (const stat of actualScope.stats) {
const found = value.find(v => v.statId == stat.id);
enabledMap[stat.id] = found != null && (!!found?.required || !!found?.acquired);
enabledMap[stat.id] = found != null && (found?.required > (zeroDeletes ? 0 : -1));
requiredMap[stat.id] = found?.required || 0;
acquiredMap[stat.id] = found?.acquired || 0;
}

Loading…
Cancel
Save