Skip to content

Commit 644618e

Browse files
committed
fix(clerk-js): Render proration credit from credits
1 parent 4f968e2 commit 644618e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/ui/src/components/Checkout/CheckoutForm.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ export const CheckoutForm = withCardStateProvider(() => {
8484
{showProratedCredit && (
8585
<LineItems.Group variant='tertiary'>
8686
<LineItems.Title title={localizationKeys('billing.creditRemainder')} />
87-
<LineItems.Description text={`- ${totals.credit?.currencySymbol}${totals.credit?.amountFormatted}`} />
87+
<LineItems.Description
88+
text={`- ${totals.credits?.proration?.amount.currencySymbol}${totals.credits?.proration?.amount.amountFormatted}`}
89+
/>
8890
</LineItems.Group>
8991
)}
9092
{showAccountCredits && (

0 commit comments

Comments
 (0)