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,6 +70,8 @@ export function CovenantPurchasesRoot(props: IProps): React.ReactElement {
return ( return (
<div> <div>
<PopupCloseButton popup={PopupId} text={"Close"} /> <PopupCloseButton popup={PopupId} text={"Close"} />
{props.p.sleevesFromCovenant < MaxSleevesFromCovenant && (
<>
<p> <p>
Would you like to purchase an additional Duplicate Sleeve from The Covenant for{" "} Would you like to purchase an additional Duplicate Sleeve from The Covenant for{" "}
<Money money={purchaseCost()} player={props.p} />? <Money money={purchaseCost()} player={props.p} />?
@ -80,6 +82,8 @@ export function CovenantPurchasesRoot(props: IProps): React.ReactElement {
{MaxSleevesFromCovenant} from The Covenant. {MaxSleevesFromCovenant} from The Covenant.
</p> </p>
<StdButton disabled={purchaseDisabled} onClick={purchaseOnClick} text={"Purchase"} /> <StdButton disabled={purchaseDisabled} onClick={purchaseOnClick} text={"Purchase"} />
</>
)}
<br /> <br />
<br /> <br />
<p> <p>