missed a spot

This commit is contained in:
Godfrey M 2024-12-05 10:18:35 -08:00
parent de41def2b3
commit f6b9ae6aee

View file

@ -1162,7 +1162,7 @@ class ReportsController extends Controller
Mail::to($email)->send((new CheckoutAssetMail($assetItem, $assetItem->assignedTo, $logItem->user, $logItem->note, $acceptance)));
}
if ($assetItem->assignedTo?->email == ''){
if ($email == ''){
return redirect()->route('reports/unaccepted_assets')->with('error', trans('general.no_email'));
}