Skip to content

Commit

Permalink
fix score color
Browse files Browse the repository at this point in the history
  • Loading branch information
5rahim committed Jul 9, 2024
1 parent 3bfc3c0 commit b9f9f7c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions seanime-web/src/lib/helpers/score.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ export function getScoreColor(score: number, kind: "audience" | "user"): string
"text-red-200",
)
}
if (score < 50) { // 30-49
return cn(
kind === "audience" && "bg-orange-500 bg-opacity-20",
kind === "user" && "bg-orange-800 bg-opacity-90",
"text-orange-200",
)
}
if (score < 60) { // 50-59
// if (score < 50) { // 30-49
// return cn(
// kind === "audience" && "bg-orange-500 bg-opacity-20",
// kind === "user" && "bg-orange-800 bg-opacity-90",
// "text-orange-200",
// )
// }
if (score < 60) { // 30-59
return cn(
kind === "audience" && "bg-amber-500 bg-opacity-20",
kind === "user" && "bg-amber-800 bg-opacity-90",
Expand Down

0 comments on commit b9f9f7c

Please sign in to comment.