From 758eb5c7f9846bd6087b22aab3c2ebe879298c6a Mon Sep 17 00:00:00 2001 From: Rallen Date: Thu, 28 Oct 2021 03:00:36 +0200 Subject: [PATCH] Add braces around `if` --- packages/react-select/src/Select.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-select/src/Select.tsx b/packages/react-select/src/Select.tsx index 90ec7c978c..161fc5beb3 100644 --- a/packages/react-select/src/Select.tsx +++ b/packages/react-select/src/Select.tsx @@ -1979,7 +1979,7 @@ export default class Select< if (!name || isDisabled) return; - if (required && !this.hasValue()) + if (required && !this.hasValue()) { return ( ); + } if (isMulti) { if (delimiter) {