Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Jan 5, 2025
1 parent 222b4d6 commit f0cf0cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/Builds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface Build {
version: string;
}

function toDate(dateStr: string): boolean {
function toDate(dateStr: string): Date {
const year = Number.parseInt(dateStr.substring(0, 4), 10);
const month = Number.parseInt(dateStr.substring(4, 6), 10) - 1; // Subtract 1 because months are 0-indexed in JavaScript dates
const day = Number.parseInt(dateStr.substring(6, 8), 10);
Expand Down Expand Up @@ -103,7 +103,7 @@ function BuildComponent(props: {
</a>
</td>
<td class="hidden lg:table-cell">
{date >= "20231228" ? (
{dateStr >= "20231228" ? (
<a class="underline" href={statsLink}>
stats
</a>
Expand Down

0 comments on commit f0cf0cf

Please sign in to comment.