Skip to content

Commit

Permalink
Only use "capped" style for completed bounties, not completed items
Browse files Browse the repository at this point in the history
  • Loading branch information
bhollis committed Feb 10, 2025
1 parent b094038 commit 545d2fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/inventory/ItemIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ export function getItemImageStyles(item: DimItem, className?: string) {
(item.bucket.hash === BucketHashes.Subclass ||
item.itemCategoryHashes.includes(ItemCategoryHashes.Packages))) ||
item.isEngram;
const isBounty = Boolean(!item.primaryStat && item.objectives);
const itemImageStyles = clsx('item-img', className, {
[styles.complete]: item.complete || isCapped,
[styles.complete]: (isBounty && item.complete) || isCapped,
[styles.borderless]: borderless,
[styles.masterwork]: item.masterwork,
[styles.deepsight]: item.deepsightInfo,
Expand Down

0 comments on commit 545d2fc

Please sign in to comment.