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 Apr 10, 2022
1 parent 6edbcf7 commit 470e922
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 @@ -1978,14 +1978,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 470e922

Please sign in to comment.