Skip to content

Commit

Permalink
feat: if there are no games in progress show message.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiCO2k committed May 28, 2022
1 parent b4d6c1e commit 479df53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/Apis/LiveScoresApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ public function makeRequest(): Collection
return collect();
}

dump("{$this->baseUrl}/{$this->endpointPath}/1.00?MD=1");

return $this->client()
->get("{$this->endpointPath}/1.00?MD=1")
->throw()
Expand Down
6 changes: 4 additions & 2 deletions resources/views/components/sport-leagues.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@props(['sport', 'leagues', 'title', 'titleClass'])
<div class="px-2 uppercase font-bold {{ $titleClass }}">{{ $title }}</div>
@foreach ($leagues as $league)
@forelse ($leagues as $league)
<div>
<x-league-title
:category="$league['category']"
Expand All @@ -14,4 +14,6 @@
/>
@endforeach
</div>
@endforeach
@empty
<div class="text-gray italic">There are no live games currently in progress</div>
@endforelse

0 comments on commit 479df53

Please sign in to comment.