diff --git a/apps/web/src/server/billing/payments.ts b/apps/web/src/server/billing/payments.ts index aa56446..a442627 100644 --- a/apps/web/src/server/billing/payments.ts +++ b/apps/web/src/server/billing/payments.ts @@ -186,7 +186,10 @@ export async function syncStripeData(customerId: string) { await db.team.update({ where: { id: team.id }, data: { - plan: getPlanFromPriceIds(priceIds), + plan: + subscription.status === "canceled" + ? "FREE" + : getPlanFromPriceIds(priceIds), isActive: subscription.status === "active", }, });