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

Commit

Permalink
Fix empty description showing up as <null> for Everhour
Browse files Browse the repository at this point in the history
  • Loading branch information
godbout committed Jul 3, 2019
1 parent 2505a93 commit ac051fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Everhour.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ protected function convertToPastTimers($everhourTimers)
protected function buildPastTimerObject($everhourTimer, $projects)
{
$pastTimer['id'] = $everhourTimer->id;
$pastTimer['description'] = $everhourTimer->comment ?? null;
$pastTimer['description'] = $everhourTimer->comment ?? '';

if (isset($everhourTimer->task)) {
$pastTimer['project_id'] = $everhourTimer->task->projects[0];
Expand Down

0 comments on commit ac051fb

Please sign in to comment.