fix(core): reorder plan card action button conditions (#10387)

This commit is contained in:
JimmFly
2025-02-25 09:51:10 +08:00
committed by GitHub
parent abda70d2c8
commit dee6be11fb

View File

@@ -145,16 +145,16 @@ const ActionButton = ({ detail, recurring }: PlanCardProps) => {
// if currentRecurring !== recurring => 'Change to {recurring} Billing'
// else => 'Upgrade'
// not signed in
if (!loggedIn) {
return <SignUpAction>{signUpText}</SignUpAction>;
}
// team
if (detail.plan === SubscriptionPlan.Team) {
return <UpgradeToTeam recurring={recurring} />;
}
// not signed in
if (!loggedIn) {
return <SignUpAction>{signUpText}</SignUpAction>;
}
// lifetime
if (isBeliever) {
return (