diff --git a/packages/shared/src/components/PlatformProfileRechargeModal/index.tsx b/packages/shared/src/components/PlatformProfileRechargeModal/index.tsx index 0f9c9eaea..e5341e48b 100644 --- a/packages/shared/src/components/PlatformProfileRechargeModal/index.tsx +++ b/packages/shared/src/components/PlatformProfileRechargeModal/index.tsx @@ -996,11 +996,9 @@ function PlatformRechargeCheckoutDialog({ membershipPlans.find((item) => item.plan === target.plan) ?? null; const annual = target.cycleKind === 'yearly'; const cycleLabel = annual ? '年付' : '月付'; - const listPriceCents = plan - ? annual - ? plan.yearPriceCents - : plan.monthPriceCents - : 0; + const listPriceCents = annual + ? (plan?.yearPriceCents ?? 0) + : (plan?.monthPriceCents ?? 0); const isUpgrade = target.mode === 'upgrade'; const currentPlan = membershipPlans.find((item) => item.plan === membership?.plan) ?? null;