Skip to content

Commit

Permalink
Removed x100
Browse files Browse the repository at this point in the history
  • Loading branch information
cryingtoilet authored Jan 8, 2025
1 parent f6aa448 commit fa375fb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Extension-React/src/components/CouponCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export interface Coupon {
}

const colorRanges = [
{ min: 70, color: "text-green-500" },
{ min: 55, color: "text-lime-500" },
{ min: 40, color: "text-yellow-500" },
{ min: 25, color: "text-orange-500" },
{ min: 0.7, color: "text-green-500" },
{ min: 0.55, color: "text-lime-500" },
{ min: 0.4, color: "text-yellow-500" },
{ min: 0.25, color: "text-orange-500" },
{ min: 0, color: "text-red-500" }
] as const;

Expand All @@ -33,7 +33,7 @@ const CouponCard: React.FC<{
copied: boolean;
}> = ({ coupon, onCopy, copied }) => {
const { t } = useTranslation();
let score = Math.round(coupon.score * 100);
let score = Math.round(coupon.score);

return (
<Card className="p-4 pt-2 pb-2 flex justify-between items-center bg-card text-card-foreground">
Expand Down

0 comments on commit fa375fb

Please sign in to comment.