Skip to content

Commit 3d71be6

Browse files
fix-3634
1 parent 10f131c commit 3d71be6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/projects/detail/components/SkillsQuestion/SkillsQuestion.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ class SkillsQuestion extends React.Component {
9898
const indexOfSpace = value.indexOf(' ')
9999
const indexOfSemiColon = value.indexOf(';')
100100

101-
// if user enter only ' ' or ';' we should clean it to not allow
101+
// if user enter ' ' or ';' in the start of the input, we should clean it to not allow
102102
if (indexOfSpace === 0 || indexOfSemiColon === 0 ) {
103-
return value.replace(' ', '').replace(';', '')
103+
return value.slice(1)
104104
}
105105

106106
if (indexOfSemiColon >= 1 ) {

0 commit comments

Comments
 (0)