From aa155207ed8df7cd86c2cedfc94fe44dd23eda7b Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Tue, 3 Jun 2025 11:41:19 +0100 Subject: [PATCH] Fix bug in billing screen --- src/components/Billing/BillingPage.tsx | 30 +++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/components/Billing/BillingPage.tsx b/src/components/Billing/BillingPage.tsx index 54d7285d4..ffcc3155e 100644 --- a/src/components/Billing/BillingPage.tsx +++ b/src/components/Billing/BillingPage.tsx @@ -114,21 +114,6 @@ export function BillingPage() { ); - if (!priceDetails) { - return ( -
-

Uh oh!

-

- We couldn't find your subscription details. Please contact support at - - info@roadmap.sh - - . -

-
- ); - } - if (billingDetails?.status === 'none' || isIncompleteExpired) { return ( <> @@ -184,6 +169,21 @@ export function BillingPage() { ); } + if (!priceDetails) { + return ( +
+

Uh oh!

+

+ We couldn't find your subscription details. Please contact support at + + info@roadmap.sh + + . +

+
+ ); + } + return ( <> {modals}