From fb91582fc611b8262b1fb636ca0e74ff72e26ddf Mon Sep 17 00:00:00 2001 From: recursive_tree Date: Thu, 28 Mar 2024 17:07:24 +0100 Subject: [PATCH] fix missing null check --- src/resources/views/character/sheet.blade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/resources/views/character/sheet.blade.php b/src/resources/views/character/sheet.blade.php index 2919f219e..9c5181b26 100644 --- a/src/resources/views/character/sheet.blade.php +++ b/src/resources/views/character/sheet.blade.php @@ -31,7 +31,7 @@
{{ trans('web::seat.curr_training') }}
@if($character->skill_queue->where('finish_date', '>', carbon())->isNotEmpty()) - {{ $character->skill_queue->where('finish_date', '>', carbon())->first()->type->typeName }} to level + {{ $character->skill_queue->where('finish_date', '>', carbon())->first()->type->typeName ?? trans('web::seat.unknown') }} to level {{ $character->skill_queue->where('finish_date', '>', carbon())->first()->finished_level }} @else {{ trans('web::seat.no_skill_training') }} @@ -60,7 +60,7 @@ finish_date != '0000-00-00 00:00:00') data-original-title="Ends {{ human_diff(carbon($skill->finish_date)->toDateString()) }} on {{ carbon($skill->finish_date)->toDateString() }} at {{ carbon($skill->finish_date)->toTimeString() }}" - @endif>{{ $skill->type->typeName }} + @endif>{{ $skill->type->typeName ?? trans('web::seat.unknown') }} @for($i = 1; $i <= $skill->finished_level; $i++) @if($i == $skill->finished_level) @@ -267,7 +267,7 @@
    @foreach($character->implants as $implant) -
  • {{ $implant->type->typeName }}
  • +
  • {{ $implant->type->typeName ?? trans('web::seat.unknown') }}
  • @endforeach