Skip to content

Commit

Permalink
show alts of characters with invalid tokens (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
recursivetree authored Dec 24, 2023
1 parent d05ca29 commit 21fdd20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/resources/views/character/includes/summary.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
</p>

<ul class="list-group list-group-unbordered mb-3">
@if(! is_null($character->refresh_token))
@if($character->refresh_token()->withTrashed()->exists())
@can('global.invalid_tokens')
@foreach($character->refresh_token->user->all_characters()->where('character_id', '<>', $character->character_id)->sortBy('name') as $character_info)
@foreach($character->refresh_token()->withTrashed()->first()->user->all_characters()->where('character_id', '<>', $character->character_id)->sortBy('name') as $character_info)

<li class="list-group-item">

Expand All @@ -55,7 +55,7 @@

@endforeach
@else
@foreach($character->refresh_token->user->characters->where('character_id', '<>', $character->character_id)->sortBy('name') as $character_info)
@foreach($character->refresh_token()->withTrashed()->first()->user->characters->where('character_id', '<>', $character->character_id)->sortBy('name') as $character_info)

<li class="list-group-item">

Expand Down

0 comments on commit 21fdd20

Please sign in to comment.