Skip to content

Commit

Permalink
fix: console no longer throws error if apm is not (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDASILVA authored Mar 5, 2020
1 parent 9625b54 commit 7ee4c2a
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,11 @@
onScrollHours: debounce(function (scroll) {
const value = this.getValue(scroll)
const hour = this.isTwelveFormat
? this.apm.toLowerCase() === 'am'
? value + 1
: (value + 1 + 12)
? this.apm
? this.apm.toLowerCase() === 'am'
? value + 1
: (value + 1 + 12)
:value
: value
if (this.isHoursDisabled(hour)) return
this.hour = hour === 24 && !this.isTwelveFormat ? 23 : hour
Expand Down

0 comments on commit 7ee4c2a

Please sign in to comment.