Low On Caffeine, Please Forgive Coding Style

This commit is contained in:
Pietro Rodolfo Masera 2023-05-29 18:24:20 +02:00
parent 86c11913dc
commit 66baa0344d
1 changed files with 3 additions and 1 deletions

View File

@ -111,7 +111,9 @@ const maxPrice = computed(() => {
if (Date.parse(d.date) > maxDate) {
maxDate = Date.parse(d.date);
for (const ticker in maxVal) {
maxVal[ticker] = d[ticker] as number;
if (typeof d[ticker] === 'number' && !isNaN(d[ticker] as number)) {
maxVal[ticker] = d[ticker] as number;
}
}
}
}