Skip to content

Commit

Permalink
Update SelectableImageList.tsx (#1122)
Browse files Browse the repository at this point in the history
`> 80` should be `>= 80` to be consistent
  • Loading branch information
mrose17 authored Jul 13, 2023
1 parent 42ca19a commit 3c718f2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/web3/SelectableImageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const SelectableImageList: React.FC<Props> = ({
onToggleSelection,
}) => {
const showCheckbox = items.some(
(item) => item.collection !== undefined && item.collection.spam_score > 80
(item) => item.collection !== undefined && item.collection.spam_score >= 80
);

const [showSpamItems, setShowSpamItems] = useState(false);
Expand Down Expand Up @@ -53,7 +53,9 @@ export const SelectableImageList: React.FC<Props> = ({
checked={showSpamItems}
onChange={onToggleSpamItems}
/>
{showSpamItems ? "Show all NFTs" : "Show all NFTs (not all being shown)"}
{showSpamItems
? "Show all NFTs"
: "Show all NFTs (not all being shown)"}
</label>
</div>
)}
Expand Down Expand Up @@ -82,4 +84,4 @@ export const SelectableImageList: React.FC<Props> = ({
</div>
</div>
);
};
};

0 comments on commit 3c718f2

Please sign in to comment.