Skip to content

Commit

Permalink
Prevent error when scrolling through time before setting apm
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Lucas Da Silva Cunha committed Jul 30, 2020
1 parent 02e500e commit da5e3a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@
onScrollHours: debounce(function (scroll) {
const value = this.getValue(scroll)
const hour = this.isTwelveFormat
? this.apm
? this.apm && this.apm.toLowerCase
? this.apm.toLowerCase() === 'am'
? value + 1
: (value + 1 + 12)
Expand Down

0 comments on commit da5e3a7

Please sign in to comment.