Skip to content

Commit

Permalink
Remove hardcoded totalDays
Browse files Browse the repository at this point in the history
  • Loading branch information
aweell committed Nov 27, 2024
1 parent 6e72269 commit 226cc3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/advent-calendar-2024/pages/progress-view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {
getAchievementFromLocalStorage,
} from "../utils/achievement-config";
import { TOTAL_CALENDAR_DAYS } from "../utils/constants";
import { calendarDays } from "../utils/calendar-config.jsx";

const ProgressView = () => {
const [completedDays, setCompletedDays] = useState([]);
Expand Down Expand Up @@ -181,7 +182,7 @@ const ProgressView = () => {
<Text size={64} mobileSize={48} lineHeight={64} mobileLineHeight={48}>
of
</Text>{" "}
{TOTAL_CALENDAR_DAYS}
{calendarDays.length}
</Text>
<Stack space={4}>
<Inline space={8} alignItems="center">
Expand Down

0 comments on commit 226cc3c

Please sign in to comment.