Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const onPasshraseChange = (evt) => {
const { value } = evt.target;
const errors = validation.getPassphraseValidationErrors(value);
setState({
passphrase: value,
error: errors[0] ? errors[0].message : '',
});
};