-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Remove Growl from VBA flow, for non-server errors #4875
Conversation
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
I didn't assign PullerBear... 😕 I have another commit that I was testing, will raise a new PR for it now. |
* @param {Boolean} isServerError | ||
*/ | ||
function showBankAccountFormValidationError(error, isServerError) { | ||
Onyx.merge(ONYXKEYS.REIMBURSEMENT_ACCOUNT, {error}).then(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NAB, I'm not sure it's necessary to wait for this promise. IIRC we don't want to do it as a convention or something to avoid unnecessary synchronous code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point
🚀 Deployed to production by @roryabraham in version: 1.0.90-2 🚀
|
Details
Removes the Growl for non-server errors, as these are displayed in the error Modal. Server errors are not yet displayed in the error Modal, so we need to continue to show with the Growl.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/175331
Tests
0) Test Setup
1) Verify that Modal validation errors DO NOT show as a Growl
https://
2) Verify that server errors DO show as a Growl
12345678
2) Verify that unhandled validation errors DO show as a Growl
QA Steps
Run above tests
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android