chore: update billing card rendering logic to include payment data check

This commit is contained in:
javayhu 2025-08-23 08:23:54 +08:00
parent c66fedea27
commit 1be26638fc

View File

@ -100,7 +100,7 @@ export default function BillingCard() {
// Render loading skeleton if not mounted or in a loading state
const isPageLoading = isLoadingPayment || isLoadingSession;
if (!mounted || isPageLoading) {
if (!mounted || isPageLoading || !paymentData) {
return (
<Card className={cn('w-full overflow-hidden pt-6 pb-0 flex flex-col')}>
<CardHeader>