remove message from covenant when you're maxed sleeves

This commit is contained in:
Olivier Gagnon 2021-09-21 18:04:47 -04:00
parent 6111c50eb1
commit c94ec2f170

@ -70,16 +70,20 @@ export function CovenantPurchasesRoot(props: IProps): React.ReactElement {
return ( return (
<div> <div>
<PopupCloseButton popup={PopupId} text={"Close"} /> <PopupCloseButton popup={PopupId} text={"Close"} />
<p> {props.p.sleevesFromCovenant < MaxSleevesFromCovenant && (
Would you like to purchase an additional Duplicate Sleeve from The Covenant for{" "} <>
<Money money={purchaseCost()} player={props.p} />? <p>
</p> Would you like to purchase an additional Duplicate Sleeve from The Covenant for{" "}
<br /> <Money money={purchaseCost()} player={props.p} />?
<p> </p>
These Duplicate Sleeves are permanent (they persist through BitNodes). You can purchase a total of{" "} <br />
{MaxSleevesFromCovenant} from The Covenant. <p>
</p> These Duplicate Sleeves are permanent (they persist through BitNodes). You can purchase a total of{" "}
<StdButton disabled={purchaseDisabled} onClick={purchaseOnClick} text={"Purchase"} /> {MaxSleevesFromCovenant} from The Covenant.
</p>
<StdButton disabled={purchaseDisabled} onClick={purchaseOnClick} text={"Purchase"} />
</>
)}
<br /> <br />
<br /> <br />
<p> <p>