Skip to content

Commit

Permalink
feat(core): fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiia_glushkova committed Dec 17, 2024
1 parent bb4b649 commit aa851a7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/components/cat-checkbox/cat-checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,6 @@ export class CatCheckbox {
}

private updateResolved() {
this.resolvedValue = this.checked ? this.value ?? true : this.noValue ?? false;
this.resolvedValue = this.checked ? (this.value ?? true) : (this.noValue ?? false);
}
}
2 changes: 1 addition & 1 deletion core/src/components/cat-date-inline/cat-date-inline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ export class CatDateInline {
} else if (isSameMonth(this.viewDate, now) && (!minDate || minDate <= now)) {
return isSameMonth(this.viewDate, date) && isSameDay(now, date);
}
const minDay = isSameMonth(date, minDate) ? minDate?.getDate() ?? 1 : 1;
const minDay = isSameMonth(date, minDate) ? (minDate?.getDate() ?? 1) : 1;
return isSameMonth(this.viewDate, date) && date.getDate() === minDay;
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/cat-dropdown/cat-dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export class CatDropdown {
const elem = elems.shift();
trigger = elem?.hasAttribute('data-trigger')
? (elem as HTMLElement)
: elem?.querySelector('[data-trigger]') ?? undefined;
: (elem?.querySelector('[data-trigger]') ?? undefined);
}
if (!trigger) {
trigger = firstTabbable(this.triggerSlot);
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/cat-toggle/cat-toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,6 @@ export class CatToggle {
}

private updateResolved() {
this.resolvedValue = this.checked ? this.value ?? true : this.noValue ?? false;
this.resolvedValue = this.checked ? (this.value ?? true) : (this.noValue ?? false);
}
}

0 comments on commit aa851a7

Please sign in to comment.