fix: isNaN

This commit is contained in:
2023-06-13 11:47:56 +02:00
parent 872c089e4b
commit 653e1cf8a1

View File

@@ -54,8 +54,8 @@ const chartData = computed(() =>
return {
date: formattedDate,
warmUpSet: isNaN(maxWarmUpSetWeight) ? 0 : maxWarmUpSetWeight,
workingSet: isNaN(maxWorkingSetWeight) ? 0 : maxWorkingSetWeight,
warmUpSet: Number.isNaN(maxWarmUpSetWeight) ? 0 : maxWarmUpSetWeight,
workingSet: Number.isNaN(maxWorkingSetWeight) ? 0 : maxWorkingSetWeight,
}
}),
)