diff --git a/changelog.txt b/changelog.txt index 03eb8c5f5..b9b5b2e46 100644 --- a/changelog.txt +++ b/changelog.txt @@ -10,6 +10,7 @@ - Fix: [#229] Count Today in totals no longer causes problem in the month balance - Fix: [#239] Punch button is disabled when current day is waived - Fix: [#240] Waiver using electron dialog instead of js confirm/alert +- Fix: [#244] Waiver opens with filled date when clicking from calendar - Fix: [#249] Fix loading preferences - Fix: [#250] Silently ignoring waiver on non-working day or non-working day range - Fix: [#252] Prevent multiple preferences and workday waiver windows to be opened diff --git a/main.js b/main.js index 428d5fced..63c27c376 100644 --- a/main.js +++ b/main.js @@ -18,11 +18,7 @@ ipcMain.on('PREFERENCE_SAVE_DATA_NEEDED', (event, preferences) => { }); ipcMain.on('SET_WAIVER_DAY', (event, waiverDay) => { - /*eslint-disable no-undef*/ - if (!isNaN(waiverDay)) - { - global.waiverDay = waiverDay; - } + global.waiverDay = waiverDay; }); // Keep a global reference of the window object, if you don't, the window will