Skip to content

Commit

Permalink
fix(fixed typo):
Browse files Browse the repository at this point in the history
fixed typo
  • Loading branch information
stefanoTron committed Oct 6, 2017
1 parent b22e2d4 commit d0ede70
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class BusinessHours {

isOpenNow(now = new Date()) {
const day = getDay(now);
// console.log("now: ", format(now, "DD/MM/YYYY HH:mm"));
// console.log("now: ", format(now, "DD/MM/YYYY HH:mm"));
let isOpenNow = false;
if (this.hours[day.toString()] === "closed") return isOpenNow;
this.hours[day.toString()].some((fromTo, index) => {
Expand All @@ -83,7 +83,6 @@ class BusinessHours {
const toDate = setHours(setMinutes(now, toMinutes), toHours);
isOpenNow = isWithinRange(now, fromDate, toDate);

);
return isOpenNow;
});
return isOpenNow;
Expand Down

0 comments on commit d0ede70

Please sign in to comment.