Skip to content

Commit

Permalink
#194 Corrigindo if da responseMsg
Browse files Browse the repository at this point in the history
  • Loading branch information
brenno-silva committed May 6, 2021
1 parent 10728c1 commit 8099bc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ String announErrorFormart(String responseMsg) {
if (responseMsg ==
("{phone_number: [user with this phone number already exists.]}"))
return 'Telefone já cadastrado!';
else if (responseMsg == ("{email: [user with this email already exists.]}"))
else if (responseMsg == ("{email: [Email ja registrado!]}"))
return 'Email já cadastrado!';
else
return 'Email e telefone já cadastrados!';
Expand Down

0 comments on commit 8099bc3

Please sign in to comment.