We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 222b4d6 commit f0cf0cfCopy full SHA for f0cf0cf
app/src/Builds.tsx
@@ -12,7 +12,7 @@ interface Build {
12
version: string;
13
}
14
15
-function toDate(dateStr: string): boolean {
+function toDate(dateStr: string): Date {
16
const year = Number.parseInt(dateStr.substring(0, 4), 10);
17
const month = Number.parseInt(dateStr.substring(4, 6), 10) - 1; // Subtract 1 because months are 0-indexed in JavaScript dates
18
const day = Number.parseInt(dateStr.substring(6, 8), 10);
@@ -103,7 +103,7 @@ function BuildComponent(props: {
103
</a>
104
</td>
105
<td class="hidden lg:table-cell">
106
- {date >= "20231228" ? (
+ {dateStr >= "20231228" ? (
107
<a class="underline" href={statsLink}>
108
stats
109
0 commit comments