Fix another null.

This commit is contained in:
James Cole 2024-12-25 08:30:00 +01:00
parent 966b68f42e
commit 399d7968f5
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -129,7 +129,7 @@ class ShowController extends Controller
$groups->setPath(route('accounts.show', [$account->id, $start->format('Y-m-d'), $end->format('Y-m-d')]));
$showAll = false;
$balance = Steam::finalAccountBalance($account, $end)['balance'];
$balance = Steam::finalAccountBalance($account, $end)['balance'] ?? '0'; // TODO fix me
return view(
'accounts.show',