Minor fixes for invitation in view portal

This commit is contained in:
David Bomba 2022-08-28 16:27:12 +10:00
parent 50b1c072c8
commit 98c07573e3

View File

@ -69,7 +69,7 @@ class InvoiceController extends Controller
$data = [ $data = [
'invoice' => $invoice, 'invoice' => $invoice,
'invitation' => $invitation, 'invitation' => $invitation ?: $invoice->invitations->first(),
'key' => $invitation ? $invitation->key : false, 'key' => $invitation ? $invitation->key : false,
]; ];