Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ohdearapp/ohdear-pulse
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jan 4, 2024
2 parents 7dbb97d + 07952a4 commit ba1d500
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Livewire/OhDearUptimePulseCardComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function mount(?int $siteId = null)
public function fetchPerformanceRecords(): void
{
$performanceRecords = $this->rememberApiCall(
fn() => $this->ohDear()->performanceRecords(
fn () => $this->ohDear()->performanceRecords(
$this->siteId,
Carbon::now()->subMinutes(20),
Carbon::now(),
Expand All @@ -69,7 +69,7 @@ public function fetchPerformanceRecords(): void
$this->performanceRecords = $performanceRecords;

$this->maxPerformanceRecord = (int) ceil(collect($this->performanceRecords)
->max(fn (array $dataPoint) => $dataPoint[1])) + 10;
->max(fn (array $dataPoint) => $dataPoint[1])) + 10;
}

protected function getLabels(): array
Expand Down

0 comments on commit ba1d500

Please sign in to comment.