From c94ec2f170e126c28905c6aa3759ca8610ec1c2e Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Tue, 21 Sep 2021 18:04:47 -0400 Subject: [PATCH] remove message from covenant when you're maxed sleeves --- .../Sleeve/ui/CovenantPurchasesRoot.tsx | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/PersonObjects/Sleeve/ui/CovenantPurchasesRoot.tsx b/src/PersonObjects/Sleeve/ui/CovenantPurchasesRoot.tsx index 5943b1531..5411369a9 100644 --- a/src/PersonObjects/Sleeve/ui/CovenantPurchasesRoot.tsx +++ b/src/PersonObjects/Sleeve/ui/CovenantPurchasesRoot.tsx @@ -70,16 +70,20 @@ export function CovenantPurchasesRoot(props: IProps): React.ReactElement { return (
-

- Would you like to purchase an additional Duplicate Sleeve from The Covenant for{" "} - ? -

-
-

- These Duplicate Sleeves are permanent (they persist through BitNodes). You can purchase a total of{" "} - {MaxSleevesFromCovenant} from The Covenant. -

- + {props.p.sleevesFromCovenant < MaxSleevesFromCovenant && ( + <> +

+ Would you like to purchase an additional Duplicate Sleeve from The Covenant for{" "} + ? +

+
+

+ These Duplicate Sleeves are permanent (they persist through BitNodes). You can purchase a total of{" "} + {MaxSleevesFromCovenant} from The Covenant. +

+ + + )}