Skip to content

Commit a27d18a

Browse files
committed
fix: Update error message to be more friendly
1 parent 9b5d398 commit a27d18a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/auth/components/SignUpForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const SignUpForm: React.FC<SignupFormProps> = ({ changeAuthState }) => {
5050
const errorData = AxiosError.response?.data as any;
5151

5252
if (status === 400 && (errorData?.email || errorData?.username || JSON.stringify(errorData).includes('already exists'))) {
53-
toast.error("Esse usuário já existe no banco, use um email diferente.");
53+
toast.error("Esse usuário já existe, tente usar um email diferente.");
5454
} else {
5555
toast.error(`Erro ao cadastrar usuário: ${AxiosError.message}`);
5656
}

0 commit comments

Comments
 (0)