Fix uncap level display bug

This bug was caused primarily by us using the wrong key in the type definition.
This commit is contained in:
Justin Edmund 2022-02-01 14:15:38 -08:00
parent 0dbcc7854b
commit 41f6dcb615
2 changed files with 3 additions and 3 deletions

View file

@ -65,9 +65,9 @@ const WeaponUnit = (props: Props) => {
type="weapon" type="weapon"
ulb={weapon?.uncap.ulb || false} ulb={weapon?.uncap.ulb || false}
flb={weapon?.uncap.flb || false} flb={weapon?.uncap.flb || false}
uncapLevel={props.gridWeapon?.uncapLevel!}
updateUncap={passUncapData} updateUncap={passUncapData}
/> />
uncapLevel={gridWeapon.uncap_level}
</div> </div>
</div> </div>
) )

View file

@ -1,7 +1,7 @@
interface GridWeapon { interface GridWeapon {
id: string id: string
mainhand: boolean mainhand: boolean
position: number | null position: number
weapon: Weapon weapon: Weapon
uncapLevel: number | null uncap_level: number
} }