Skip to content

Commit f0cf0cf

Browse files
committed
fix build
1 parent 222b4d6 commit f0cf0cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/Builds.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface Build {
1212
version: string;
1313
}
1414

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

0 commit comments

Comments
 (0)