Skip to content

Commit

Permalink
fix: allow empty completed_at task date (#6025)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonVanacco committed Mar 6, 2022
1 parent 34c14cb commit d4504e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Contacts/TasksController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function index(Contact $contact)
'title' => $task->title,
'description' => $task->description,
'completed' => $task->completed,
'completed_at' => DateHelper::getShortDate($task->completed_at),
'completed_at' => ($task->completed_at) ? DateHelper::getShortDate($task->completed_at) : null,
'edit' => false,
];
$tasks->push($data);
Expand Down

0 comments on commit d4504e3

Please sign in to comment.