fix: isNaN
This commit is contained in:
@@ -54,8 +54,8 @@ const chartData = computed(() =>
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
date: formattedDate,
|
date: formattedDate,
|
||||||
warmUpSet: isNaN(maxWarmUpSetWeight) ? 0 : maxWarmUpSetWeight,
|
warmUpSet: Number.isNaN(maxWarmUpSetWeight) ? 0 : maxWarmUpSetWeight,
|
||||||
workingSet: isNaN(maxWorkingSetWeight) ? 0 : maxWorkingSetWeight,
|
workingSet: Number.isNaN(maxWorkingSetWeight) ? 0 : maxWorkingSetWeight,
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user