Skip to content
This repository was archived by the owner on Oct 16, 2023. It is now read-only.

Commit 52a3084

Browse files
mperussoMatheus Perusso
and
Matheus Perusso
authored
fix: wrong key on date indicators (#41)
Co-authored-by: Matheus Perusso <[email protected]>
1 parent 9746a4b commit 52a3084

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Resources/ActivityResource.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ public static function table(Table $table): Table
121121
->indicateUsing(function (array $data): array {
122122
$indicators = [];
123123

124-
if ($data['from'] ?? null) {
125-
$indicators['from'] = 'Created from ' . Carbon::parse($data['from'])->toFormattedDateString();
124+
if ($data['logged_from'] ?? null) {
125+
$indicators['logged_from'] = 'Created from ' . Carbon::parse($data['logged_from'])->toFormattedDateString();
126126
}
127127

128-
if ($data['until'] ?? null) {
129-
$indicators['until'] = 'Created until ' . Carbon::parse($data['until'])->toFormattedDateString();
128+
if ($data['logged_until'] ?? null) {
129+
$indicators['logged_until'] = 'Created until ' . Carbon::parse($data['logged_until'])->toFormattedDateString();
130130
}
131131

132132
return $indicators;

0 commit comments

Comments
 (0)