Skip to content

Commit a80ecf3

Browse files
authored
fix: #5886 (#5901)
1 parent a1aac2e commit a80ecf3

File tree

1 file changed

+1
-1
lines changed
  • src/shared/components/Settings/Tools/Software

1 file changed

+1
-1
lines changed

src/shared/components/Settings/Tools/Software/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export default class Software extends ConsentComponent {
381381
<input disabled={!canModifyTrait} id="name" name="name" type="text" placeholder="Name" onChange={this.onUpdateInput} value={newSoftware.name} maxLength="64" required />
382382
{
383383
isSubmit && (
384-
<ErrorMessage invalid={_.isEmpty(newSoftware.name) && formInvalid} message="Name cannot be empty" />
384+
<ErrorMessage invalid={(_.isEmpty(newSoftware.name) && formInvalid) || (!_.isEmpty(newSoftware.name) && _.isEmpty(newSoftware.name.trim()))} message="Name cannot be empty" />
385385
)
386386
}
387387
</div>

0 commit comments

Comments
 (0)