Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve language for email overlap error #83

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions src/pages/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,19 @@ const StyledCardRow = styled.div`
`;

const errorMap = {
'InvalidCredentials: Account already exists with matching email address':
'An account already exists with the email address you are trying to use. If you have participated in a previous year, please use the same GitHub/GitLab account as before to log in.',
'InvalidCredentials: Account already exists with matching email address': (
<>
A Hacktoberfest account already exists with the email address you are
trying to use.
<br />
<br />
If you have participated in a previous year of Hacktoberfest, please make
sure to use the same GitHub/GitLab account as before to log in. If you're
looking to link accounts from both GitHub and GitLab, sign in with the
account that you've used previously for Hacktoberfest and then link the
other account under the edit profile view.
</>
),
};

const Auth = () => {
Expand Down
Loading