Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Fix empty past timer description for Toggl
Browse files Browse the repository at this point in the history
  • Loading branch information
godbout committed Jul 3, 2019
1 parent ac051fb commit 091d572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Toggl.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ protected function convertToPastTimers($togglTimers)
protected function buildPastTimerObject($togglTimer, $projects)
{
$pastTimer['id'] = $togglTimer->id;
$pastTimer['description'] = $togglTimer->description ?? null;
$pastTimer['description'] = $togglTimer->description ?? '';
$pastTimer['duration'] = CarbonInterval::seconds($togglTimer->duration)->cascade()->format('%H:%I:%S');

if (isset($togglTimer->pid)) {
Expand Down

0 comments on commit 091d572

Please sign in to comment.