Skip to content

Commit

Permalink
Isuue #179: handle the case when endDate is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
yankedev committed Sep 1, 2016
1 parent 1f9b311 commit 86b7380
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
time: now.format('HH:mm')
};

if (!categoryEndTime | !categoryEndTime.date){
if (!categoryEndTime || !categoryEndTime.date){
categoryEndTime = {
date: now.format('YYYY-MM-DD'),
time: now.format('HH:mm')
Expand Down

0 comments on commit 86b7380

Please sign in to comment.