Skip to content

Commit

Permalink
Merge pull request openMF#1477 from josehernandezfintecheandomx/fix/r…
Browse files Browse the repository at this point in the history
…eschedule_dates_format

Fix for dates used in loan reschedule action
  • Loading branch information
adamsaghy authored Jul 20, 2022
2 parents a66b095 + b499398 commit 22b7adc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ export class LoanRescheduleComponent implements OnInit {
const prevRescheduleFromDate = this.rescheduleLoanForm.value.rescheduleFromDate;
const prevAdjustedDueDate = this.rescheduleLoanForm.value.adjustedDueDate;
const prevSubmittedOnDate = this.rescheduleLoanForm.value.submittedOnDate;
if (rescheduleLoanFormData.rescheduleFromDate instanceof Date) {
if (prevRescheduleFromDate instanceof Date) {
rescheduleLoanFormData.rescheduleFromDate = this.dateUtils.formatDate(prevRescheduleFromDate, dateFormat);
}
if (rescheduleLoanFormData.rescheduleFromDate instanceof Date) {
if (prevAdjustedDueDate instanceof Date) {
rescheduleLoanFormData.adjustedDueDate = this.dateUtils.formatDate(prevAdjustedDueDate, dateFormat);
}
if (rescheduleLoanFormData.rescheduleFromDate instanceof Date) {
if (prevSubmittedOnDate instanceof Date) {
rescheduleLoanFormData.submittedOnDate = this.dateUtils.formatDate(prevSubmittedOnDate, dateFormat);
}
const data = {
Expand Down

0 comments on commit 22b7adc

Please sign in to comment.