mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
fix: Remplacement des enum par des modèles pour les payementModes et les
payementPlans
This commit is contained in:
@ -31,9 +31,9 @@ export default function PaymentMethodSelector({
|
||||
|
||||
const paymentPlansOptions = [
|
||||
{ id: 1, name: '1 fois' },
|
||||
{ id: 3, name: '3 fois' },
|
||||
{ id: 10, name: '10 fois' },
|
||||
{ id: 12, name: '12 fois' },
|
||||
{ id: 2, name: '3 fois' },
|
||||
{ id: 3, name: '10 fois' },
|
||||
{ id: 4, name: '12 fois' },
|
||||
];
|
||||
|
||||
const getError = (field) => {
|
||||
@ -105,7 +105,7 @@ export default function PaymentMethodSelector({
|
||||
items={paymentPlansOptions
|
||||
.filter((option) =>
|
||||
registrationPaymentPlans.some(
|
||||
(plan) => plan.frequency === option.id
|
||||
(plan) => plan.plan_type === option.id
|
||||
)
|
||||
)
|
||||
.map((option) => ({
|
||||
@ -167,7 +167,7 @@ export default function PaymentMethodSelector({
|
||||
required
|
||||
items={paymentPlansOptions
|
||||
.filter((option) =>
|
||||
tuitionPaymentPlans.some((plan) => plan.frequency === option.id)
|
||||
tuitionPaymentPlans.some((plan) => plan.plan_type === option.id)
|
||||
)
|
||||
.map((option) => ({
|
||||
id: option.id,
|
||||
|
||||
Reference in New Issue
Block a user