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