diff --git a/native/app/inventory/Common.ts b/native/app/inventory/Common.ts index 36f9cbdc4..2ab7dbca9 100644 --- a/native/app/inventory/Common.ts +++ b/native/app/inventory/Common.ts @@ -100,7 +100,7 @@ export type DestinyIconData = { characterId: string; icon: string; damageTypeIconUri: number | null; - primaryStat: string; + primaryStat: number; quantity: number; calculatedWaterMark: string | undefined; masterwork: boolean; diff --git a/native/app/inventory/DestinyCell.tsx b/native/app/inventory/DestinyCell.tsx index 038b4e687..d625155ac 100644 --- a/native/app/inventory/DestinyCell.tsx +++ b/native/app/inventory/DestinyCell.tsx @@ -154,7 +154,7 @@ const DestinyCell = (props: DestinyCellProps) => { {props.data.crafted && } - {props.data.primaryStat !== "" && ( + {props.data.primaryStat > 0 && ( {props.data.primaryStat} diff --git a/native/app/inventory/EngramCell.tsx b/native/app/inventory/EngramCell.tsx index c841edcf1..6239edf02 100644 --- a/native/app/inventory/EngramCell.tsx +++ b/native/app/inventory/EngramCell.tsx @@ -64,7 +64,7 @@ const EngramCell = (props: DestinyCellProps) => { style={styles.frameSize} recyclingKey={props.data?.icon} /> - {props.data?.primaryStat !== "" && props.data?.primaryStat && ( + {props.data?.primaryStat && props.data?.primaryStat > 0 && ( {props.data?.primaryStat} diff --git a/native/app/store/AccountInventoryLogic.ts b/native/app/store/AccountInventoryLogic.ts index c2c5b1b23..11944c362 100644 --- a/native/app/store/AccountInventoryLogic.ts +++ b/native/app/store/AccountInventoryLogic.ts @@ -199,7 +199,7 @@ function returnVaultUiData(itemBuckets: number[], vaultData: VaultData): UISecti function returnDestinyIconData(item: DestinyItem): DestinyIconData { const damageTypeIconUri = getDamageTypeIconUri(item.damageType); - const primaryStat = item.primaryStat > 0 ? item.primaryStat.toString() : ""; + const primaryStat = item.primaryStat; const borderColor = returnBorderColor(item); const masterwork = item.masterwork ?? false; const crafted = item.crafted;