Skip to content

Commit 6f17a8b

Browse files
committed
fix: 0 timestamp
1 parent e7e55cd commit 6f17a8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/components/Package/TrendsChart.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,7 @@ const chartConfig = computed<VueUiXyConfig>(() => {
16201620
const index = Number(absoluteIndex)
16211621
if (Number.isInteger(index) && index >= 0 && index < chartData.value.dates.length) {
16221622
const timestamp = chartData.value.dates[index]
1623-
if (timestamp) {
1623+
if (typeof timestamp === 'number') {
16241624
formattedDate = tooltipDateFormatter.value.format(new Date(timestamp))
16251625
}
16261626
}

0 commit comments

Comments
 (0)