Skip to content

Commit

Permalink
changing so that the calendar displays only purple fire icons instead…
Browse files Browse the repository at this point in the history
… of the gray ones
  • Loading branch information
WelldoneM committed Nov 6, 2024
1 parent afb5820 commit da45b37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/Streak.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Streak = () => {
const isCompleted = completedDatesSet.has(formattedDate)
const isPastOrToday = formattedDate <= today

if (isPastOrToday) {
if (isPastOrToday && isCompleted) {
return (
<Box
sx={{
Expand All @@ -41,8 +41,8 @@ const Streak = () => {
<FireIcon
sx={{
fontSize: 16,
color: isCompleted ? 'primary.main' : 'gray',
animation: isCompleted ? 'burn-animation 2s infinite' : 'none',
color: 'primary.main',
animation: 'burn-animation 2s infinite',
}}
/>
</Box>
Expand Down

0 comments on commit da45b37

Please sign in to comment.