Skip to content

Commit

Permalink
remove extra or in if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
it-harrison committed Aug 29, 2023
1 parent 75211fb commit 38ca530
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@ export class VaMemorableDate {
const target = event.target as HTMLInputElement;

let [currentYear, currentMonth, currentDay] = (this.value || '').split('-');
if (target.classList.contains('input-month') || target.classList.contains('usa-form-group--month-input')
|| target.classList.contains('usa-form-group--month-select')
|| target.classList.contains('usa-form-group--month-input')) {
if (target.classList.contains('input-month') || target.classList.contains('usa-form-group--month-input') || target.classList.contains('usa-form-group--month-select')) {
currentMonth = target.value;
}
if (target.classList.contains('input-day') || target.classList.contains('usa-form-group--day-input')) {
Expand Down

0 comments on commit 38ca530

Please sign in to comment.