🟡 DisciplinesTab: statBonus and baseValue props are swapped/mismatched
#55
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
File:
src/components/game/tabs/DisciplinesTab.tsxThe
DisciplineCardcomponent declares:But at lines 233-244, the actual data is passed backwards:
Additionally, inside the component:
{statBonus}in JSX would render[object Object]at runtimeparseInt(baseValue)is called on a prop typed asnumberbut actually receiving a stringImpact: Type errors at compile time, and
[object Object]rendered in the UI at runtime. FractionalbaseValuevalues (e.g.,0.3frommana-channeling) are truncated to0byparseInt().Fix: Pass
disc.statBonus.statas the string anddisc.statBonus.baseValueas the number, aligning with the component's prop types.[priority: 4] BROKEN FEATURE — DisciplinesTab statBonus and baseValue props swapped/mismatched.
Verified fixed. The DisciplineCard component now correctly receives
disc.statBonus.stat(string) anddisc.statBonus.baseValue(number), matching the component's prop types. The props were already correctly wired.