From 4c2691deb2658bfb749a76d5665674404ac89c37 Mon Sep 17 00:00:00 2001 From: Adolphe Kifungo <45813955+adkif@users.noreply.github.com> Date: Wed, 1 Nov 2023 15:50:04 +0200 Subject: [PATCH] fix: sending empty activities --- .../src/lib/time-tracker/time-tracker.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/desktop-ui-lib/src/lib/time-tracker/time-tracker.component.ts b/packages/desktop-ui-lib/src/lib/time-tracker/time-tracker.component.ts index 8650bb868f5..7546a7569d5 100644 --- a/packages/desktop-ui-lib/src/lib/time-tracker/time-tracker.component.ts +++ b/packages/desktop-ui-lib/src/lib/time-tracker/time-tracker.component.ts @@ -1750,7 +1750,7 @@ export class TimeTrackerComponent implements OnInit, AfterViewInit { } await this._toggle(timer, onClick); if (this._startMode === TimerStartMode.MANUAL) { - const { activities } = await this.electronService.ipcRenderer.invoke('TAKE_SCREEN_CAPTURE', { + const activities = await this.electronService.ipcRenderer.invoke('TAKE_SCREEN_CAPTURE', { quitApp: this.quitApp }); await this.sendActivities(activities); @@ -1769,7 +1769,7 @@ export class TimeTrackerComponent implements OnInit, AfterViewInit { try { const config = { quitApp: this.quitApp, isEmergency }; if (this._startMode === TimerStartMode.MANUAL) { - const { activities } = await this.electronService.ipcRenderer.invoke('TAKE_SCREEN_CAPTURE', config); + const activities = await this.electronService.ipcRenderer.invoke('TAKE_SCREEN_CAPTURE', config); const timer = await this.electronService.ipcRenderer.invoke('STOP_TIMER', config); await this.sendActivities(activities, () => this._toggle(timer, onClick)); } else {