1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-29 12:10:22 +02:00

Fix bug in billing screen

This commit is contained in:
Kamran Ahmed
2025-06-03 11:41:19 +01:00
parent 2e8379ad7d
commit aa155207ed

View File

@@ -114,21 +114,6 @@ export function BillingPage() {
</>
);
if (!priceDetails) {
return (
<div className="p-5">
<h1 className="text-2xl font-bold">Uh oh!</h1>
<p className="text-sm text-gray-500">
We couldn't find your subscription details. Please contact support at
<a className="text-blue-500 underline" href="mailto:info@roadmap.sh">
info@roadmap.sh
</a>
.
</p>
</div>
);
}
if (billingDetails?.status === 'none' || isIncompleteExpired) {
return (
<>
@@ -184,6 +169,21 @@ export function BillingPage() {
);
}
if (!priceDetails) {
return (
<div className="p-5">
<h1 className="text-2xl font-bold">Uh oh!</h1>
<p className="text-sm text-gray-500">
We couldn't find your subscription details. Please contact support at
<a className="text-blue-500 underline" href="mailto:info@roadmap.sh">
info@roadmap.sh
</a>
.
</p>
</div>
);
}
return (
<>
{modals}