[No QA] Remove unnecessary checks for InlineErrorText#8194
Merged
mountiny merged 1 commit intoExpensify:mainfrom Mar 17, 2022
rushatgabhane:cleanup
Merged
[No QA] Remove unnecessary checks for InlineErrorText#8194mountiny merged 1 commit intoExpensify:mainfrom rushatgabhane:cleanup
mountiny merged 1 commit intoExpensify:mainfrom
rushatgabhane:cleanup
Conversation
mountiny
approved these changes
Mar 17, 2022
Contributor
mountiny
left a comment
There was a problem hiding this comment.
Funny MelvinBot!
Thank you @rushatgabhane!
Contributor
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
31 tasks
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
Follow up to PR #8145 (comment).
When using
InlineErrorText, we're checking iferrorTextis empty.But this isn't required because
InlineErrorTextalready handles this for us, and returnsnullif no error text in passed to it.App/src/components/InlineErrorText.js
Lines 20 to 23 in 7919e24
Fixed Issues
$ #8044 (cleanup PR)
Tests
Regression tests only.
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issuessection aboveTestssectionQA stepssectionsrc/languages/*files (if applicable)Styling.md) for all style edits I madeSTYLE.md)Avatar, I verified the components usingAvatarare working as expected)displayNameproperty if it’s a Functional Component(i.e.
StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)PR Reviewer Checklist
I verified the correct issue is linked in the
### Fixed Issuessection aboveI verified testing steps are clear and they cover the changes made in this PR
TestssectionQA stepssectionI checked that screenshots or videos are included for tests on all platforms
I verified tests pass on all platforms & I tested again on:
I verified there are no console errors related to changes in this PR
I verified proper code patterns were followed (see Reviewing the code)
src/languages/*files (if applicable)STYLE.md) were followedI verified that this PR follows the guidelines as stated in the Review Guidelines
I verified other components are not impacted by changes in this PR (i.e. if the PR modifies a shared library or component like
Avatar, I verified the components usingAvatarare working as expected)If a new component is created I verified that:
displayNameproperty if it’s a Functional ComponentIf a new CSS style is added I verified that:
(i.e.
StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Verify that no errors appear in the JS console
Screenshots
Web
Mobile Web

#### DesktopiOS
Android