We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5accb8b + c52bdd1 commit ad6eb03Copy full SHA for ad6eb03
1 file changed
apps/dashboard/src/app/(main)/purchase/[code]/page-client.tsx
@@ -48,7 +48,7 @@ export default function PageClient({ code }: { code: string }) {
48
if (!selectedPriceId || !data?.product?.prices) {
49
return 0;
50
}
51
- return Number(data.product.prices[selectedPriceId].USD) * 100;
+ return Math.round(Number(data.product.prices[selectedPriceId].USD) * 100);
52
}, [data, selectedPriceId]);
53
54
const MAX_STRIPE_AMOUNT_CENTS = 999_999 * 100;
0 commit comments