Skip to content

Commit

Permalink
Merge pull request #7070 from ever-co/bug/send-empty-activities
Browse files Browse the repository at this point in the history
Fix: sending empty activities
  • Loading branch information
rahul-rocket authored Nov 1, 2023
2 parents b42ce23 + 4c2691d commit 8ad0e4a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 {
Expand Down

0 comments on commit 8ad0e4a

Please sign in to comment.