Skip to content

Commit

Permalink
fix: streak component (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
sondrealf authored Mar 11, 2024
1 parent 7fe4e9a commit 48585a2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const GroupUserTableItem = ({ groupUser, groupData, punishmentTypes, data
const [year, month, day] = date.split("-").map(Number)
return new Date(year, month - 1, day).getTime()
})
.sort((a, b) => a - b)
.reverse()

const today = new Date().getTime()
Expand Down Expand Up @@ -135,7 +136,7 @@ export const GroupUserTableItem = ({ groupUser, groupData, punishmentTypes, data
</p>
</div>
</div>
{streak > 2 && (
{streak > 1 && (
<div className="absolute right-12 cursor-default inline-block">
<span
className="text-lg"
Expand Down

0 comments on commit 48585a2

Please sign in to comment.