Low On Caffeine, Please Forgive Coding Style
This commit is contained in:
parent
86c11913dc
commit
66baa0344d
1 changed files with 3 additions and 1 deletions
|
@ -111,10 +111,12 @@ const maxPrice = computed(() => {
|
||||||
if (Date.parse(d.date) > maxDate) {
|
if (Date.parse(d.date) > maxDate) {
|
||||||
maxDate = Date.parse(d.date);
|
maxDate = Date.parse(d.date);
|
||||||
for (const ticker in maxVal) {
|
for (const ticker in maxVal) {
|
||||||
|
if (typeof d[ticker] === 'number' && !isNaN(d[ticker] as number)) {
|
||||||
maxVal[ticker] = d[ticker] as number;
|
maxVal[ticker] = d[ticker] as number;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (const ticker in maxVal) {
|
for (const ticker in maxVal) {
|
||||||
maxVal[ticker] = roundTo(maxVal[ticker], 2);
|
maxVal[ticker] = roundTo(maxVal[ticker], 2);
|
||||||
|
|
Reference in a new issue