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

View file

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