Merge pull request #1626 from Saynt-Garmo/dev

Invisible Black Text
This commit is contained in:
hydroflame 2021-10-28 20:48:44 -04:00 committed by GitHub
commit 4498bca922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,15 +25,15 @@ function BulkPurchaseText(props: IBulkPurchaseTextProps): React.ReactElement {
const maxAmount = (props.warehouse.size - props.warehouse.sizeUsed) / matSize;
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)) {
return <>Invalid put for Bulk Purchase amount</>;
return <><Typography color={"error"}>Invalid put for Bulk Purchase amount</Typography></>;
} else {
return (
<>
<><Typography>
Purchasing {numeralWrapper.format(parsedAmt, "0,0.00")} of {props.mat.name} will cost{" "}
{numeralWrapper.formatMoney(cost)}
</>
{numeralWrapper.formatMoney(cost)}</Typography>
</>
);
}
}