fix: react-doctor async-defer-await 10→0 (move await below guards), rerender-memo-with-default-value 13→0 (module-scope EMPTY_* defaults)
This commit is contained in:
@@ -88,9 +88,10 @@ export async function createPlanUpgradeCheckout(
|
||||
billingPeriod?: "monthly" | "annual"
|
||||
): Promise<{ success: boolean; url?: string; error?: string }> {
|
||||
|
||||
await getSession(); if (!["starter", "farm", "enterprise"].includes(planTier)) {
|
||||
if (!["starter", "farm", "enterprise"].includes(planTier)) {
|
||||
return { success: false, error: "Invalid plan tier" };
|
||||
}
|
||||
await getSession();
|
||||
const annual = billingPeriod === "annual";
|
||||
return createStripeCheckoutSession(
|
||||
brandId,
|
||||
|
||||
Reference in New Issue
Block a user