Skip to content

Commit

Permalink
Fix/business days (#30)
Browse files Browse the repository at this point in the history
* marked saturday as business day; removed spare console.log

* bump version 0.3.47
  • Loading branch information
whirmill committed Nov 4, 2019
1 parent 72809de commit ba76cea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hype-chat-widget",
"version": "0.3.46",
"version": "0.3.47",
"license": "MIT",
"description": "Zopim + QnA Chat Web Widget (React)",
"main": "dist/index.js",
Expand Down
6 changes: 4 additions & 2 deletions src/components/Widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ if (ENV === 'dev') {
window.zChat = zChat
}

moment.updateLocale('it', {
workingWeekdays: [1, 2, 3, 4, 5, 6]
})

class App extends Component {
constructor() {
super()
Expand Down Expand Up @@ -679,8 +683,6 @@ class App extends Component {

const available = this.isServiceActive(settings)

console.log(moment('2019-21-04').isBusinessDay())

const availableNow =
available &&
time.isAfter(startTime) &&
Expand Down

0 comments on commit ba76cea

Please sign in to comment.