Skip to content

Commit

Permalink
Fix not being able to create waiver from month calendar
Browse files Browse the repository at this point in the history
Likely a regression of TTLApp#1131
  • Loading branch information
tupaschoal committed Feb 2, 2025
1 parent c4ad161 commit 3d08ce6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/__renderer__/workday-waiver-aux.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('Workday Waiver Aux', function()
// Mocking call
// TODO: find a better way to mock this or even really test it
global.window = {
mainApi: {
calendarApi: {
displayWaiverWindow: () => {}
}
};
Expand Down
2 changes: 1 addition & 1 deletion renderer/workday-waiver-aux.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function formatDayId(dayId)
*/
function displayWaiverWindow(waiverDay)
{
window.mainApi.displayWaiverWindow(waiverDay);
window.calendarApi.displayWaiverWindow(waiverDay);
}

export {
Expand Down

0 comments on commit 3d08ce6

Please sign in to comment.