Skip to content

Commit

Permalink
fix: typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mjatin-dev committed Mar 1, 2022
1 parent c8937ec commit 957bdbb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions admin-ui/app/routes/Apps/Gluu/GluuCommitDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ const GluuCommitDialog = ({
const { t } = useTranslation()
const [active, setActive] = useState(false)
let [loading, setLoading] = useState(isLoading)
const [userMeggage, setUserMessage] = useState('')
const [userMessage, setUserMessage] = useState('')
const USER_MESSAGE = 'user_action_message'
useEffect(() => {
if (userMeggage.length >= 10) {
if (userMessage.length >= 10) {
setActive(true)
} else {
setActive(false)
}
}, [userMeggage])
}, [userMessage])
function handleAccept() {
if (formik) {
formik.setFieldValue('action_message', userMeggage)
formik.setFieldValue('action_message', userMessage)
}
setLoading(true)
onAccept(userMeggage)
onAccept(userMessage)
}
return (
<Modal isOpen={modal} toggle={handler} className="modal-outline-primary">
Expand Down Expand Up @@ -82,9 +82,9 @@ const GluuCommitDialog = ({
}
defaultValue=""
/>
{userMeggage.length <= 10 && (
{userMessage.length <= 10 && (
<span className="text-danger">
{10 - userMeggage.length} {userMeggage.length ? ' more' : ''}{' '}
{10 - userMessage.length} {userMessage.length ? ' more' : ''}{' '}
characters required
</span>
)}
Expand Down

0 comments on commit 957bdbb

Please sign in to comment.