Skip to content

Commit

Permalink
Merge pull request #39 from bezhanSalleh/fixes/issue-38
Browse files Browse the repository at this point in the history
fixes #38
  • Loading branch information
bezhanSalleh committed Jul 15, 2023
2 parents 9d63d56 + 851cd0e commit ae10b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/Visitors.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ private function visitorsToday(): array

return [
'result' => $analyticsData[0]['activeUsers'],
'previous' => $analyticsData[1]['activeUsers'],
'previous' => $analyticsData[1]['activeUsers'] ?? 0,
];
}

Expand Down

0 comments on commit ae10b44

Please sign in to comment.