mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
[web] display Stripe invoice line items on preview change page (#29280)
GitOrigin-RevId: 267586a33f19f6931e2eb76b33fdf569aa07b4d3
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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 &&
|
||||
|
||||
@@ -9,7 +9,7 @@ export type ImmediateCharge = {
|
||||
subtotal: number
|
||||
discount: number
|
||||
tax: number
|
||||
isAiAssist: boolean
|
||||
isAiAssist?: boolean
|
||||
}[]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user