mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
add error message
This commit is contained in:
@ -89,7 +89,7 @@ class PaymentMethodsController extends Controller
|
||||
}
|
||||
|
||||
if ($paymentMethod->expenses()->exists()) {
|
||||
return respondJson('payments_attached', 'Expenses Attached.');
|
||||
return respondJson('expenses_attached', 'Expenses Attached.');
|
||||
}
|
||||
|
||||
$paymentMethod->delete();
|
||||
|
||||
Reference in New Issue
Block a user