Skip to content

Commit

Permalink
refactor: use valueOf (#8352)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Aug 7, 2024
1 parent 53ca295 commit 3bc8e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/kit/components/input-time/input-time.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export class TuiInputTimeComponent
}

checkOption(option: TuiTime): void {
if (option.toAbsoluteMilliseconds() === this.value?.toAbsoluteMilliseconds()) {
if (option.valueOf() === this.value?.valueOf()) {
this.value = option;
}
}
Expand Down

0 comments on commit 3bc8e07

Please sign in to comment.