Skip to content

Commit

Permalink
Refactored logo.blade.php to remove unnecessary conditional statement…
Browse files Browse the repository at this point in the history
… and improve code readability.
  • Loading branch information
thejmitchener committed Jun 10, 2024
1 parent 876c94d commit 80855b0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions resources/views/components/logo.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@
scrolled = window.pageYOffset > window.innerHeight * 0.05;
});
">
@if (Route::has('home'))
<a href="{{ route('home') }}">Home</a>
@else
<a href="">Home</a>
@endif
<a href="{{ config('app.url') }}">
<span class="sr-only">
{{ config('app.name') }}
</span>
Expand Down

0 comments on commit 80855b0

Please sign in to comment.