Skip to content

Commit

Permalink
asap fix for denerio in stripe.ts (Codehagen#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
Codehagen authored Apr 12, 2024
1 parent 72d01d1 commit 29633a9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/api/src/router/stripe.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { currentUser } from "@clerk/nextjs";
import { USD } from "@dinero.js/currencies";
// import { USD } from "@dinero.js/currencies";
import { dinero } from "dinero.js";
import * as z from "zod";

Expand Down Expand Up @@ -82,19 +82,19 @@ export const stripeRouter = createTRPCRouter({
PLANS.STANDARD
? {
...PLANS.STANDARD,
price: dinero({
amount: stdPrice.unit_amount || 0,
currency: USD,
}),
// price: dinero({
// amount: stdPrice.unit_amount || 0,
// currency: USD,
// }),
}
: undefined,
PLANS.PRO
? {
...PLANS.PRO,
price: dinero({
amount: proPrice.unit_amount || 0,
currency: USD,
}),
// price: dinero({
// amount: proPrice.unit_amount || 0,
// currency: USD,
// }),
}
: undefined,
].filter(Boolean) as PlansResponse;
Expand Down

0 comments on commit 29633a9

Please sign in to comment.