-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2021-09-15] Language getting automatically set to English while signing in #4507
Comments
Triggered auto assignment to @sonialiap ( |
ProposalWe need to preserve the locale inside restartSignin function I can do this by connecting to Onyx for current locale and use this block of code inside
|
Triggered auto assignment to @deetergp ( |
Triggered auto assignment to @arielgreen ( |
Definitely something a external contributor can do, and @thesahindia's proposal sounds good. |
Triggered auto assignment to @tgolen ( |
@tgolen can you review @thesahindia's proposal? @thesahindia please also be sure to apply to the Upwork job here. |
@arielgreen Submitted the proposal 😄 |
I would like to request some changes to your proposal to increase the quality of the code. I would suggest refactoring this code slightly so that there is only one method in the entire codebase in |
@tgolen App/src/libs/actions/SignInRedirect.js Lines 28 to 34 in 69ee2fe
Here it says that If we move this function to Session.js then it can cause circular dependency. So, maybe moving the logic to Session.js is not a good idea. Let me know your thoughts.
|
Yeah, I'd be fine with getting rid of With that then, I think it's a complete proposal and I give the 🟢 to be hired for this @arielgreen. |
@thesahindia just sent over an offer! I also raised the price to include the bonus you'll receive for proposing AND fixing this. |
Thanks @arielgreen, I have accepted the offer! |
@tgolen App/src/libs/actions/SignInRedirect.js Lines 41 to 43 in e5957e1
And then there's no use case of it. Let me know what should be done here. Thanks! Correction: Using a default value will not fix it as it's being set to the value of null . |
It's entirely possible that So, I still think we are pretty safe to remove |
In fact, I really don't like that |
Sure, function openSignedInLink(url = '') {
API.GetAccountValidateCode().then((response) => {
const exitToURL = url ? `exitTo=${url}` : '';
const validateCodeUrl = `v/${currentUserAccountID}/${response.validateCode}${exitToURL}`;
Linking.openURL(CONFIG.EXPENSIFY.URL_EXPENSIFY_COM + validateCodeUrl);
});
} |
Beware, This might be not working in Safari Mobile. |
Oh, if this might break something then I think it's better to just leave it as it is? |
I don't think we need to worry about |
Found this issue while testing the code. For some reason, there's a delay in Android (but Web looks fine) Android :androidBug.mp4Web :video-2021-08-24_00.28.07.mp4Not sure but it could be related to this issue #4513 |
It is not related to #4513 |
@thesahindia can you please provide an update here? |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to production by @yuwenmemon in version: 1.0.94-1 🚀
|
It's OK melvin. It's not overdue |
Paid. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Language should not change
Actual Result:
Workaround:
No, Spanish Users might find it hard to navigate.
Platform:
Where is this issue occurring?
Version Number:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
View all open jobs on Upwork
The text was updated successfully, but these errors were encountered: