This commit is contained in:
James Cole
2025-10-01 20:28:24 +02:00
parent 5637573fd0
commit 87d3d14504
4 changed files with 16 additions and 16 deletions

View File

@@ -68,10 +68,6 @@ class UpdateController extends Controller
$data = $request->getAll();
$piggyBank = $this->repository->update($piggyBank, $data);
if (array_key_exists('current_amount', $data) && '' !== $data['current_amount']) {
$this->repository->setCurrentAmount($piggyBank, $data['current_amount']);
}
// enrich
/** @var User $admin */
$admin = auth()->user();