Skip to content

Commit

Permalink
refactor: Tidy DestinyCell (#1871)
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelBreslaw authored Jun 25, 2024
1 parent 9729a19 commit 16668c1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions native/app/inventory/cells/DestinyCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,9 @@ export default function DestinyCell({ destinyItem }: Props) {
);
}
const { characterId, itemHash, itemInstanceId, bucketHash, quantity } = destinyItem;

const icon = destinyItem.instance.icon;
const calculatedWaterMark = destinyItem.instance.calculatedWaterMark ?? "";
const { icon, calculatedWaterMark, crafted, enhanced, primaryStat } = destinyItem.instance;
const damageTypeIconUri = getDamageTypeIconUri(destinyItem.instance.damageType);
const crafted = destinyItem.instance.crafted ?? false;
const enhanced = destinyItem.instance.enhanced ?? false;
const stackSizeMaxed = destinyItem.quantity === destinyItem.def.maxStackSize;
const primaryStat = destinyItem.instance.primaryStat;
const borderColor = returnBorderColor(destinyItem);

const navigation = useNavigation();
Expand Down

0 comments on commit 16668c1

Please sign in to comment.