Skip to content

Commit

Permalink
Arithmetic test for spam_score should be >= 80 (not > 80)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrose17 committed Jul 17, 2023
1 parent 74743bc commit c82d4b9
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 c82d4b9

Please sign in to comment.