mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
* Reapply "[web] Remove SubscriptionFormatters, format subscription dates in the…" This reverts commit 2939e71e5b919529cbb8a602916d5f597d117792. * Fixup after rename conflict: `nextPaymentDueDate`->`periodEnd` GitOrigin-RevId: c024a3a2cd08c1f8f9d4c99f9ba6f018d334439e
This commit is contained in:
+2
-1
@@ -33,6 +33,7 @@ import { formatCurrency } from '@/shared/utils/currency'
|
||||
import { ManagedInstitution } from '../../../../../types/subscription/dashboard/managed-institution'
|
||||
import { Publisher } from '../../../../../types/subscription/dashboard/publisher'
|
||||
import { formatTime } from '@/features/utils/format-date'
|
||||
import { formatPaymentDateTime } from '../util/payment-dates'
|
||||
|
||||
type SubscriptionDashboardContextValue = {
|
||||
groupPlanToChangeToCode: string
|
||||
@@ -150,7 +151,7 @@ export function SubscriptionDashboardProvider({
|
||||
!personalSubscription.payment.pausedAt ||
|
||||
!personalSubscription.payment.remainingPauseCycles
|
||||
) {
|
||||
return personalSubscription.payment.nextPaymentDueAt
|
||||
return formatPaymentDateTime(personalSubscription.payment.periodEnd)!
|
||||
}
|
||||
const pausedDate = new Date(personalSubscription.payment.pausedAt)
|
||||
pausedDate.setMonth(
|
||||
|
||||
Reference in New Issue
Block a user