diff --git a/package.json b/package.json index 6fb4f6e1..b124b412 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "swdc-vscode", "displayName": "Code Time", - "version": "2.7.8", + "version": "2.7.9", "publisher": "softwaredotcom", "description": "Code Time is an open source plugin that provides programming metrics right in Visual Studio Code.", "author": { diff --git a/src/notifications/endOfDay.ts b/src/notifications/endOfDay.ts index 15bf1c83..5220c049 100644 --- a/src/notifications/endOfDay.ts +++ b/src/notifications/endOfDay.ts @@ -30,7 +30,7 @@ export const setEndOfDayNotification = async () => { if (!cachedUser) { return; } - const workHours: any = cachedUser?.profile.work_hours ? JSON.parse(cachedUser.profile.work_hours) : DEFAULT_WORK_HOURS + const workHours: any = cachedUser?.profile?.work_hours ? JSON.parse(cachedUser.profile.work_hours) : DEFAULT_WORK_HOURS // If the end of day notification setting is turned on (if undefined or null, will default to true) if (cachedUser?.preferences_parsed?.notifications?.endOfDayNotification) { diff --git a/swdc-vscode-2.7.8.vsix b/swdc-vscode-2.7.9.vsix similarity index 84% rename from swdc-vscode-2.7.8.vsix rename to swdc-vscode-2.7.9.vsix index 7fe9f6ea..8960651f 100644 Binary files a/swdc-vscode-2.7.8.vsix and b/swdc-vscode-2.7.9.vsix differ