Skip to content

Commit

Permalink
Correção: Corrigindo bug no EditUserController
Browse files Browse the repository at this point in the history
  • Loading branch information
lgomesroc committed Nov 29, 2024
1 parent 583c6ed commit 5ae7968
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Http/Controllers/User/EditUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ public function __invoke(Request $request, string $uuid)
$state = $request->input('state');
$password = $request->input('password');

$user->name = $name;
if ($name) {
$user->name = $name;
}

if ($email) {
$user->email = $email;
Expand Down

0 comments on commit 5ae7968

Please sign in to comment.