Artifact Content
Not logged in

Artifact 9ae5ff2f6fb17e6ab3414117ab0746fe26e7b4c3:


import {createValidator, required, integer, hostname, hostnameNotSelf, peerHostname} from 'utils/validation'

export const validate = (values, props) => {
  return createValidator({
    hostname: [required, hostname, hostnameNotSelf, peerHostname(props.peerState.list)],
    limit: [required, integer],
    currencyCode: [required]
  })(values, props)
}