chore: update billing card rendering logic to include payment data check
This commit is contained in:
parent
c66fedea27
commit
1be26638fc
@ -100,7 +100,7 @@ export default function BillingCard() {
|
|||||||
|
|
||||||
// Render loading skeleton if not mounted or in a loading state
|
// Render loading skeleton if not mounted or in a loading state
|
||||||
const isPageLoading = isLoadingPayment || isLoadingSession;
|
const isPageLoading = isLoadingPayment || isLoadingSession;
|
||||||
if (!mounted || isPageLoading) {
|
if (!mounted || isPageLoading || !paymentData) {
|
||||||
return (
|
return (
|
||||||
<Card className={cn('w-full overflow-hidden pt-6 pb-0 flex flex-col')}>
|
<Card className={cn('w-full overflow-hidden pt-6 pb-0 flex flex-col')}>
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
|
Loading…
Reference in New Issue
Block a user