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,7 +111,9 @@ 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) {
|
||||||
maxVal[ticker] = d[ticker] as number;
|
if (typeof d[ticker] === 'number' && !isNaN(d[ticker] as number)) {
|
||||||
|
maxVal[ticker] = d[ticker] as number;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue