fix: empty string unit literal stripped by heredoc
This commit is contained in:
parent
2f13c0d7a2
commit
64c222b172
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ async function fetchFromAngel(): Promise<MarketQuote[]> {
|
||||||
|
|
||||||
return fetched.map((q: any) => {
|
return fetched.map((q: any) => {
|
||||||
const key = symToKey[q.tradingSymbol] ?? q.tradingSymbol;
|
const key = symToKey[q.tradingSymbol] ?? q.tradingSymbol;
|
||||||
const meta = LABELS[key] ?? { label: q.tradingSymbol, unit: };
|
const meta = LABELS[key] ?? { label: q.tradingSymbol, unit: '' };
|
||||||
const ltp = parseFloat(q.ltp) || 0;
|
const ltp = parseFloat(q.ltp) || 0;
|
||||||
const close = parseFloat(q.close) || 0;
|
const close = parseFloat(q.close) || 0;
|
||||||
const change = parseFloat(q.netChange) || (ltp - close);
|
const change = parseFloat(q.netChange) || (ltp - close);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue