Skip to content

Commit

Permalink
Updated clearDateErrorsAndSetValue() function
Browse files Browse the repository at this point in the history
  • Loading branch information
PrashantMangukiya committed Nov 3, 2021
1 parent a79c025 commit 27bd5ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/ReimbursementAccount/CompanyStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,14 @@ class CompanyStep extends React.Component {
}

/**
* Clear errors associated with incorporation date.
* Clear both errors associated with incorporation date, and set the new value.
*
* @param {String} value
*/
clearDateErrorsAndSetValue(value) {
this.clearErrorAndSetValue('incorporationDate', value);
this.clearError('incorporationDate');
this.clearError('incorporationDateFuture');
this.setValue({incorporationDate: value});
}

/**
Expand Down

0 comments on commit 27bd5ee

Please sign in to comment.