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 has been 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})})})
Just an idea! you might want to go from here.
The text was updated successfully, but these errors were encountered:
I saw in a commit that doing a 12 words validation was commented as a TODO. In AuBit I did like this:
Just an idea! you might want to go from here.
The text was updated successfully, but these errors were encountered: