fix(savings): format charges date payload to match API requirements (#3055)
This commit is contained in:
@@ -133,8 +133,10 @@ export class CreateSavingsAccountComponent {
|
|||||||
charges: this.savingsAccount.charges.map((charge: any) => ({
|
charges: this.savingsAccount.charges.map((charge: any) => ({
|
||||||
chargeId: charge.id,
|
chargeId: charge.id,
|
||||||
amount: charge.amount,
|
amount: charge.amount,
|
||||||
dueDate: charge.dueDate,
|
dueDate: charge.dueDate ? this.dateUtils.formatDate(charge.dueDate, dateFormat) : charge.dueDate,
|
||||||
feeOnMonthDay: charge.feeOnMonthDay,
|
feeOnMonthDay: charge.feeOnMonthDay
|
||||||
|
? this.dateUtils.formatDate(charge.feeOnMonthDay, monthDayFormat)
|
||||||
|
: charge.feeOnMonthDay,
|
||||||
feeInterval: charge.feeInterval
|
feeInterval: charge.feeInterval
|
||||||
})),
|
})),
|
||||||
submittedOnDate: this.dateUtils.formatDate(this.savingsAccount.submittedOnDate, dateFormat),
|
submittedOnDate: this.dateUtils.formatDate(this.savingsAccount.submittedOnDate, dateFormat),
|
||||||
|
|||||||
Reference in New Issue
Block a user