Minor rebalancing to stock market. Updated documentation and tests for recent changes

This commit is contained in:
danielyxie
2019-06-11 00:18:14 -07:00
parent 7301946236
commit 931de230ae
5 changed files with 42 additions and 26 deletions
+3 -1
View File
@@ -27,7 +27,9 @@ export function StockTickerHeaderText(props: IProps): React.ReactElement {
let plusOrMinus = stock.b; // True for "+", false for "-"
if (stock.otlkMag < 0) { plusOrMinus = !plusOrMinus }
hdrText += (plusOrMinus ? "+" : "-").repeat(Math.floor(Math.abs(stock.otlkMag) / 10) + 1);
hdrText += ` - ${stock.getAbsoluteForecast()} / ${stock.otlkMagForecast}`;
// Debugging:
// hdrText += ` - ${stock.getAbsoluteForecast()} / ${stock.otlkMagForecast}`;
}
let styleMarkup = {