Skip to content

Commit 5579c35

Browse files
committed
Clean up sending verification email error message
1 parent 9d21b52 commit 5579c35

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

client/src/components/Authorization/UpdateAccount.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ const UpdateAccount = props => {
7575
);
7676
break;
7777

78-
case "EMAIL_CONFIRMATION_FAILED":
78+
case "ERR_VERIFICATION_EMAIL_FAILED":
7979
setErrorMsg(
80-
`Sending the confirmation email failed. Please contact technical support. The error message is: "${response.message}"`
80+
`Sending verification email failed. Please contact technical support. Error: "${response.message}"`
8181
);
8282
break;
8383

server/app/services/account.service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const handleVerifyUpdateConfirmation = async (email, token) => {
125125
const error = new Error(
126126
`Failed to send verification email: ${err.message}`
127127
);
128-
error.code = "EMAIL_CONFIRMATION_FAILED";
128+
error.code = "ERR_VERIFICATION_EMAIL_FAILED";
129129
throw error;
130130
}
131131
};

0 commit comments

Comments
 (0)