mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-09-02 05:42:41 +02:00
Fix bug in billing screen
This commit is contained in:
@@ -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) {
|
if (billingDetails?.status === 'none' || isIncompleteExpired) {
|
||||||
return (
|
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 (
|
return (
|
||||||
<>
|
<>
|
||||||
{modals}
|
{modals}
|
||||||
|
Reference in New Issue
Block a user