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

Sign in- Two different warning messages displayed when tap Set Password #11114

Closed
kbecciv opened this issue Sep 19, 2022 · 8 comments
Closed
Assignees
Labels
Daily KSv2 Engineering Improvement Item broken or needs improvement. Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review

Comments

@kbecciv
Copy link

kbecciv commented Sep 19, 2022

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:

  1. Launch the app
  2. Put you new email address in Sign in page
  3. Tap Continue
  4. Tap a couple times on Resent Link button
  5. Go back to you email and find email from Expensify Concierge
  6. Should arrived a several emails due to hitting Resent link several times
  7. Tap on first one, which is invalid already
  8. Change the link to staging
  9. Type password
  10. Hit Set Password several times

Expected Result:

One warning messages displayed when tap Set Password several times

Actual Result:

Two different warning messages displayed when tap Set Password several times

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.2.2.0

Reproducible in staging?: Yes

Reproducible in production?: Yes

Email or phone of affected tester (no customers): any

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

Screen_Recording_20220919-134812_New.Expensify.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

@melvin-bot
Copy link

melvin-bot bot commented Sep 19, 2022

Triggered auto assignment to @madmax330 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@sobitneupane
Copy link
Contributor

Proposal:
Reason: Two errors being shown are returned by ErrorUtils.getLatestErrorMessage(this.props.session); (say error1) and ErrorUtils.getLatestErrorMessage(this.props.account); (say error2). When the button is loading, "error1" is undefined. So, during that period, 'error2' is being displayed.

My proposal is to show error message only when button is not loading.

isAlertVisible={!_.isEmpty(error)}

<FormAlertWithSubmitButton
    buttonText={buttonText}
    isLoading={this.props.account.isLoading}
    onSubmit={this.validateAndSubmitForm}
    containerStyles={[styles.mb2, styles.mh0]}
    message={error}
-   isAlertVisible={!_.isEmpty(error)}
+   isAlertVisible={!this.props.account.isLoading && !_.isEmpty(error)}
    isDisabled={!this.state.isFormValid}
/>

Output:

Screen.Recording.2022-09-20.at.12.00.28.mov

@Puneet-here
Copy link
Contributor

cc: @MonilBhavsar

@MonilBhavsar
Copy link
Contributor

Thanks for the ping! Looks like a bug from code refactoring. Looking into it

@madmax330 madmax330 assigned MonilBhavsar and unassigned madmax330 Sep 20, 2022
@MonilBhavsar MonilBhavsar added Improvement Item broken or needs improvement. Internal Requires API changes or must be handled by Expensify staff and removed Improvement Item broken or needs improvement. labels Sep 20, 2022
@MonilBhavsar
Copy link
Contributor

Handling internally as it was caused because of refactoring. The refactor code is deployed and we want to push this fix asap.

@MonilBhavsar MonilBhavsar added the Improvement Item broken or needs improvement. label Sep 20, 2022
@MonilBhavsar MonilBhavsar added the Reviewing Has a PR in review label Sep 20, 2022
@melvin-bot melvin-bot bot closed this as completed Sep 21, 2022
@MonilBhavsar MonilBhavsar reopened this Sep 21, 2022
@MonilBhavsar
Copy link
Contributor

PR is merged. Waiting for deploy

@melvin-bot
Copy link

melvin-bot bot commented Sep 26, 2022

⚠️ Looks like this issue was linked to a possible regression on PRODUCTION here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a production regression has occurred a Root Cause Analysis is required. Please follow the instructions here.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering Improvement Item broken or needs improvement. Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

6 participants