You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-02-10] [$250] Contact method - Two error messages appear the same time #55490
Version Number: 9.0.86-3 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
⚠️@Krishna2323 Thanks for your proposal. Please update it to follow the proposal template, as proposals are only reviewed if they follow that format (note the mandatory sections).
🚨 Edited by proposal-police: This proposal was edited at 2025-01-21 05:01:01 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Contact method - Two error messages appear the same time
What is the root cause of that problem?
We only clear the error when validateError is not empty but we missed to check !isEmptyObject(ErrorUtils.getLatestErrorField(validateCodeAction, 'actionVerified')).
Optional: We can create a const to store the value of ErrorUtils.getLatestErrorField(validateCodeAction, 'actionVerified') since we are using that here also:
Please re-state the problem that we are trying to solve in this issue.
Two error messages appears at the same time
What is the root cause of that problem?
When user tries to send a new magic code multiple times with ResendValidateCode endpoint, we get the error Failed to send a new magic code. because of the limit, and then we are storing this error in the ONYXKEYS.VALIDATE_ACTION_CODE key , under actionVerified property:
What changes do you think we should make in order to solve the problem?
To remove the previous error, we can clear the VALIDATE_ACTION_CODE error message whenever user clicks the Verify Btn and addNewContactMethod returns a new error.
here:
changed the title [-]Contact method - Two error messages appear the same time[/-][+][$250] Contact method - Two error messages appear the same time[/+]on Jan 22, 2025
Activity
melvin-bot commentedon Jan 20, 2025
Triggered auto assignment to @zanyrenney (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.github-actions commentedon Jan 20, 2025
Krishna2323 commentedon Jan 20, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-01-21 05:01:01 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Contact method - Two error messages appear the same time
What is the root cause of that problem?
validateErroris not empty but we missed to check!isEmptyObject(ErrorUtils.getLatestErrorField(validateCodeAction, 'actionVerified')).App/src/components/ValidateCodeActionModal/ValidateCodeForm/BaseValidateCodeForm.tsx
Lines 186 to 190 in bec182c
What changes do you think we should make in order to solve the problem?
|| !isEmptyObject(ErrorUtils.getLatestErrorField(validateCodeAction, 'actionVerified'))to the condition below:App/src/components/ValidateCodeActionModal/ValidateCodeForm/BaseValidateCodeForm.tsx
Line 186 in bec182c
ErrorUtils.getLatestErrorField(validateCodeAction, 'actionVerified')since we are using that here also:App/src/components/ValidateCodeActionModal/ValidateCodeForm/BaseValidateCodeForm.tsx
Line 234 in bec182c
actionVerifiederror insidevalidateAndSubmitForm, it should be called before the conditional blocks.What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
Shahidullah-Muffakir commentedon Jan 21, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Two error messages appears at the same time
What is the root cause of that problem?
ResendValidateCodeendpoint, we get the error Failed to send a new magic code. because of the limit, and then we are storing this error in theONYXKEYS.VALIDATE_ACTION_CODEkey , under actionVerified property:App/src/libs/actions/User.ts
Lines 549 to 551 in bec182c
App/src/libs/actions/User.ts
Line 416 in bec182c
What changes do you think we should make in order to solve the problem?
To remove the previous error, we can clear the
VALIDATE_ACTION_CODEerror message whenever user clicks the Verify Btn andaddNewContactMethodreturns a new error.here:
App/src/libs/actions/User.ts
Line 416 in bec182c
in the failureData we can add this:
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
NA
Screen.Recording.2025-01-21.at.9.15.23.AM.mov
Krishna2323 commentedon Jan 21, 2025
PROPOSAL UPDATED
zanyrenney commentedon Jan 22, 2025
melvin-bot commentedon Jan 22, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021882050166066042062
[-]Contact method - Two error messages appear the same time[/-][+][$250] Contact method - Two error messages appear the same time[/+]melvin-bot commentedon Jan 22, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (
External)22 remaining items
parasharrajat commentedon Feb 10, 2025
@zanyrenney Could you please add the summary?
carlosmiceli commentedon Feb 12, 2025
Chill Melvi, we're waiting for @zanyrenney
melvin-bot commentedon Feb 17, 2025
@carlosmiceli @parasharrajat @zanyrenney @Krishna2323 this issue is now 4 weeks old, please consider:
Thanks!
melvin-bot commentedon Feb 18, 2025
@carlosmiceli, @parasharrajat, @zanyrenney, @Krishna2323 Huh... This is 4 days overdue. Who can take care of this?
mallenexpensify commentedon Feb 18, 2025
Contributor: @Krishna2323 paid $250 via Upwork
Contributor+: @parasharrajat due $250 via NewDot
Test case created
Apologies for the payment delay
JmillsExpensify commentedon Feb 21, 2025
$250 approved for @parasharrajat