[No QA] Remove unnecessary checks for InlineErrorText #8194
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 iferrorText
is empty.But this isn't required because
InlineErrorText
already handles this for us, and returnsnull
if 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 Issues
section aboveTests
sectionQA steps
sectionsrc/languages/*
files (if applicable)Styling.md
) for all style edits I madeSTYLE.md
)Avatar
, I verified the components usingAvatar
are working as expected)displayName
property 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 Issues
section aboveI verified testing steps are clear and they cover the changes made in this PR
Tests
sectionQA steps
sectionI 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 usingAvatar
are working as expected)If a new component is created I verified that:
displayName
property 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
#### Desktop
iOS
Android