diff --git a/packages/client/src/pages/PortalSettings/categories/developer-tools/Webhooks/sub-components/SecretKeyInput/index.js b/packages/client/src/pages/PortalSettings/categories/developer-tools/Webhooks/sub-components/SecretKeyInput/index.js index edd208e697..e0dcf6fb16 100644 --- a/packages/client/src/pages/PortalSettings/categories/developer-tools/Webhooks/sub-components/SecretKeyInput/index.js +++ b/packages/client/src/pages/PortalSettings/categories/developer-tools/Webhooks/sub-components/SecretKeyInput/index.js @@ -59,6 +59,9 @@ export const SecretKeyInput = ({ const [isHintVisible, setIsHintVisible] = useState(false); const toggleHint = () => setIsHintVisible((prevIsHintVisible) => !prevIsHintVisible); + const handleInputValidation = (isValid) => { + setIsPasswordValid(isValid); + }; return (
@@ -77,9 +80,7 @@ export const SecretKeyInput = ({ value={value} name={name} placeholder="Enter secret key" - onValidateInput={(isValid) => { - setIsPasswordValid(isValid); - }} + onValidateInput={handleInputValidation} hasError={!isPasswordValid} isDisableTooltip={true} inputType="password"