From d6af858c9c70a9793d24081c93f94319735ae943 Mon Sep 17 00:00:00 2001 From: beatrizmaselli Date: Mon, 23 Sep 2024 17:50:37 +0200 Subject: [PATCH] add space to required field --- react/inputs/StyleguideInput/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react/inputs/StyleguideInput/index.js b/react/inputs/StyleguideInput/index.js index cced242f..01553844 100644 --- a/react/inputs/StyleguideInput/index.js +++ b/react/inputs/StyleguideInput/index.js @@ -83,7 +83,7 @@ class StyleguideInput extends Component { const disabled = !!address[field.name].disabled - const valid = address[field.name].valid === false ? false : true + const valid = address[field.name].valid !== false const loading = loadingProp != null ? loadingProp : address[field.name].loading @@ -144,7 +144,7 @@ class StyleguideInput extends Component { !valid ? 'vtex-address-form__field-invalid' : '' } ${!address[field.name].value ? 'vtex-address-form__field-empty' : ''} ${ this.state.isFocused ? 'vtex-address-form__field-focused' : '' - }${field.required ? 'vtex-address-form__field-required' : ''}` + } ${field.required ? 'vtex-address-form__field-required' : ''}` if (field.name === 'postalCode') { return (