fix: isNaN

master
Flycro 2023-06-13 11:47:56 +02:00
parent 872c089e4b
commit 653e1cf8a1
1 changed files with 2 additions and 2 deletions

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,
}
}),
)