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

[PB-1678]:Fix/Update wrong login credentials text #1300

Open
wants to merge 2 commits into
base: release/2.7.0
Choose a base branch
from

Conversation

Jona-Internxt
Copy link

Update wrong login text and transaltions

Copy link

vercel bot commented Oct 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
drive-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 2:40pm

@@ -172,7 +172,11 @@ export default function LogIn(): JSX.Element {
navigationService.history.push(`/activate/${email}`);
}

setLoginError([castedError.message]);
setLoginError([
castedError.message.includes('Wrong login credentials')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of comparing the error message to display that message, I think that will be bettter try doing it with the http status code. That way even if the backend change the message it will still work if the numerical code is the same.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed!

Copy link

Deploying drive-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 37ede4b
Status:⚡️  Build in progress...

View logs

Copy link

sonarcloud bot commented Oct 3, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants