From a715ae58afa15a98006e2271522bef5a00ca071f Mon Sep 17 00:00:00 2001 From: floppydiskette Date: Sat, 31 Aug 2024 00:47:01 +0100 Subject: Handle any errors if unable to get presence or weather data --- resources/views/components/discord-status.blade.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'resources/views/components/discord-status.blade.php') diff --git a/resources/views/components/discord-status.blade.php b/resources/views/components/discord-status.blade.php index 00d2c7a..868fc03 100644 --- a/resources/views/components/discord-status.blade.php +++ b/resources/views/components/discord-status.blade.php @@ -1,3 +1,7 @@ -I'm -

{{ $status["text"] }}!

+@if($status == null) +

Status Unavailable

+@else + I'm +

{{ $status["text"] }}!

+@endif

Time in Britain:

-- cgit v1.2.3-54-g00ecf