Skip to content

Commit beb1023

Browse files
committed
SST-102 Fixed automatic membership valid to date population regardless of cart position
1 parent 5948663 commit beb1023

File tree

1 file changed

+1
-1
lines changed
  • client-html/src/js/containers/checkout/utils

1 file changed

+1
-1
lines changed

client-html/src/js/containers/checkout/utils/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ const getInvoiceLinePrices = (item: CheckoutItem, lines: AbstractInvoiceLine[],
406406
};
407407

408408
const validTo = item.type === "membership" ? {
409-
validTo: lines[0]?.membership?.validTo
409+
validTo: targetLine?.membership?.validTo
410410
} : {};
411411

412412
return {

0 commit comments

Comments
 (0)