Skip to content

Commit

Permalink
Fix 500 error on Days of the Omer page
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed Sep 15, 2023
1 parent d8fadab commit 44f10fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hebcal-web",
"version": "2.11.2",
"version": "2.11.3",
"description": "Hebcal server-side Node.js for www.hebcal.com and download.hebcal.com",
"repository": {
"type": "git",
Expand Down Expand Up @@ -30,7 +30,7 @@
"license": "BSD-2-Clause",
"devDependencies": {
"@babel/cli": "^7.22.15",
"@babel/core": "^7.22.17",
"@babel/core": "^7.22.19",
"@babel/preset-env": "^7.22.15",
"@babel/register": "^7.22.15",
"@rollup/plugin-babel": "^6.0.3",
Expand All @@ -42,7 +42,7 @@
"eslint": "^8.49.0",
"eslint-config-google": "^0.14.0",
"jquery": "^3.7.1",
"rollup": "^3.29.1"
"rollup": "^3.29.2"
},
"dependencies": {
"@hebcal/core": "^4.3.3",
Expand Down
3 changes: 2 additions & 1 deletion src/holidayDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ const holidayYearRange = {

function getHolidayBegin(holiday, year, il) {
if (holiday === OMER_TITLE) {
return makeOmerEvents(year);
const events = makeOmerEvents(year);
return {multiYearBegin: [], holidayBegin: events};
}
year = year || new Date().getFullYear();
const range = holidayYearRange[holiday] || [3, 8];
Expand Down

0 comments on commit 44f10fc

Please sign in to comment.