Skip to content

Commit 26613f2

Browse files
committed
fix: failing typescript check
1 parent ff19611 commit 26613f2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

desktop/createDownloadQueue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const createDownloadQueue: CreateDownloadQueue = () => {
9999
} else if (state === 'completed') {
100100
if (process.platform === 'darwin') {
101101
const savePath = electronDownloadItem.getSavePath();
102-
app.dock.downloadFinished(savePath);
102+
app?.dock?.downloadFinished(savePath);
103103
}
104104
item.win.webContents.send(ELECTRON_EVENTS.DOWNLOAD_COMPLETED, {url: item.url});
105105
resolve();

desktop/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ const mainWindow = (): Promise<void> => {
307307

308308
// Prod and staging set the icon in the electron-builder config, so only update it here for dev
309309
if (__DEV__) {
310-
app.dock.setIcon(`${__dirname}/../icon-dev.png`);
310+
app?.dock?.setIcon(`${__dirname}/../icon-dev.png`);
311311
app.setName('New Expensify Dev');
312312
}
313313

0 commit comments

Comments
 (0)