mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23:48 +01:00
Invisible Black Text
This commit is contained in:
parent
f64e0e0475
commit
14b2f2ad4d
@ -25,14 +25,14 @@ function BulkPurchaseText(props: IBulkPurchaseTextProps): React.ReactElement {
|
|||||||
const maxAmount = (props.warehouse.size - props.warehouse.sizeUsed) / matSize;
|
const maxAmount = (props.warehouse.size - props.warehouse.sizeUsed) / matSize;
|
||||||
|
|
||||||
if (parsedAmt * matSize > maxAmount) {
|
if (parsedAmt * matSize > maxAmount) {
|
||||||
return <>Not enough warehouse space to purchase this amount</>;
|
return <><Typography color={"error"}>Not enough warehouse space to purchase this amount</Typography></>;
|
||||||
} else if (isNaN(cost)) {
|
} else if (isNaN(cost)) {
|
||||||
return <>Invalid put for Bulk Purchase amount</>;
|
return <><Typography color={"error"}>Invalid put for Bulk Purchase amount</Typography></>;
|
||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<>
|
<><Typography>
|
||||||
Purchasing {numeralWrapper.format(parsedAmt, "0,0.00")} of {props.mat.name} will cost{" "}
|
Purchasing {numeralWrapper.format(parsedAmt, "0,0.00")} of {props.mat.name} will cost{" "}
|
||||||
{numeralWrapper.formatMoney(cost)}
|
{numeralWrapper.formatMoney(cost)}</Typography>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user