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 Nov 15, 2021
1 parent cd50d29 commit 758eb5c
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 @@ -1979,14 +1979,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 758eb5c

Please sign in to comment.