Skip to content

Commit

Permalink
test(example): pass on language
Browse files Browse the repository at this point in the history
  • Loading branch information
commenthol committed Aug 8, 2021
1 parent 1f995ea commit 454f40f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"license": "ISC",
"devDependencies": {
"browserify": "^17.0.0",
"date-holidays-ical": "^2.0.0"
"date-holidays-ical": "^2.0.1"
}
}
4 changes: 2 additions & 2 deletions examples/browser/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@

function SelectState () {
const hd = new Holidays()
const options = hd.getStates(g.country)
const options = hd.getStates(g.country, g.language)
const selected = g.state = options && options[g.state] ? g.state : ''
n.state = options && options[g.state]
return h(Select, { options, selected, id: 'state' })
}

function SelectRegion () {
const hd = new Holidays()
const options = hd.getRegions(g.country, g.state)
const options = hd.getRegions(g.country, g.state, g.language)
const selected = g.region = options && options[g.region] ? g.region : ''
n.state = options && options[g.region]
return h(Select, { options, selected, id: 'region' })
Expand Down

0 comments on commit 454f40f

Please sign in to comment.