Skip to content

Commit b3ba2b1

Browse files
committed
[fix] [entitlement] [starter-kit]
1 parent 07fc6aa commit b3ba2b1

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

src/lib/user-entitlement.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@ async function getCreditsForUserPurchase(user: User, fsPurchase: PurchaseInfo):
4646
credits = getEntitledCredits(fsPurchase);
4747
}
4848

49-
// Save purchase info in our DB
50-
await prisma.userFsEntitlement.upsert({
51-
where: { fsLicenseId: fsPurchase.licenseId },
52-
create: fsPurchase.toEntitlementRecord({ userId: user.id }),
53-
update: fsPurchase.toEntitlementRecord(),
54-
});
55-
5649
return credits;
5750
}
5851

src/react-starter/components/payments-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function PaymentsSection(props: { payments: PortalPayment[]; unit: Sellin
5252

5353
<div className="fs-saas-starter-payments-section__plan col-span-2 lg:col-span-1">
5454
{payment.planTitle}{' '}
55-
{payment.quota ? (
55+
{payment.quota && payment.quota !== 1 ? (
5656
<span className="text-disabled-foreground text-xs font-semibold">
5757
{locale.portal.payments.pricingTitle(
5858
formatNumber(payment.quota ?? 0, locale.code),

0 commit comments

Comments
 (0)