Skip to content

Commit

Permalink
Add braces around if
Browse files Browse the repository at this point in the history
  • Loading branch information
Rall3n committed Jan 20, 2022
1 parent 3f6e217 commit 4af03f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-select/src/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1977,14 +1977,15 @@ export default class Select<

if (!name || isDisabled) return;

if (required && !this.hasValue())
if (required && !this.hasValue()) {
return (
<RequiredInput
name={name}
onFocus={this.onValueInputFocus}
requiredMessage={requiredMessage}
/>
);
}

if (isMulti) {
if (delimiter) {
Expand Down

0 comments on commit 4af03f4

Please sign in to comment.