mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 20:55:44 +01:00
Changing color of stocks going up (#1065)
This commit is contained in:
parent
8c2a23f2ba
commit
e8311d4f05
@ -45,11 +45,11 @@ export function StockTickerHeaderText(props: IProps): React.ReactElement {
|
||||
// hdrText += ` - ${stock.getAbsoluteForecast()} / ${stock.otlkMagForecast}`;
|
||||
}
|
||||
|
||||
let color = "primary";
|
||||
let color = Settings.theme.success;
|
||||
if (stock.lastPrice === stock.price) {
|
||||
color = "secondary";
|
||||
color = Settings.theme.secondary;
|
||||
} else if (stock.lastPrice > stock.price) {
|
||||
color = "error";
|
||||
color = Settings.theme.error;
|
||||
}
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user