[web] display Stripe invoice line items on preview change page (#29280)

GitOrigin-RevId: 267586a33f19f6931e2eb76b33fdf569aa07b4d3
This commit is contained in:
Kristina
2025-10-28 15:39:11 +01:00
committed by Copybot
parent 8441937806
commit 05a50710bd
3 changed files with 3 additions and 2 deletions

View File

@@ -13,7 +13,7 @@
* @property {number} subtotal
* @property {number} discount
* @property {number} tax
* @property {boolean} isAiAssist
* @property {boolean} [isAiAssist]
*/
const OError = require('@overleaf/o-error')

View File

@@ -39,6 +39,7 @@ function PreviewSubscriptionChange() {
(item, index, arr) => {
if (!item.isAiAssist) return true
// TODO: this can be removed when all subscriptions are using Stripe
const isCanceledByAnotherItem = arr.some(
(otherItem, otherIndex) =>
otherIndex !== index &&

View File

@@ -9,7 +9,7 @@ export type ImmediateCharge = {
subtotal: number
discount: number
tax: number
isAiAssist: boolean
isAiAssist?: boolean
}[]
}