You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 14, 2024. It is now read-only.
I saw in a commit that doing a 12 words validation was commented as a TODO. In AuBit I did like this:
constvalidationSchema=Yup.object().shape({mnemonic: Yup.string().test('mnemonic',function(value){leterrorMessageif(value)){if(value.split(' ').length!==12){errorMessage='Mnemonic should have 12 words'}}else{errorMessage='This field is required'}returnthis.createError({path: this.path,message: errorMessage})})})