Skip to content

Commit

Permalink
additional seed validation added on a new account create
Browse files Browse the repository at this point in the history
  • Loading branch information
lexfrl committed Jan 18, 2019
1 parent 3467196 commit d9f2756
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/screens/AccountNew.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import {
DEFAULT_NETWORK_COLOR
} from '../constants';
import colors from '../colors';
import { validateSeed } from '../util/account';

export default class AccountNew extends React.Component {
static navigationOptions = {
Expand Down Expand Up @@ -126,9 +127,9 @@ class AccountNewView extends React.Component {
<Button
buttonStyles={styles.nextStep}
title="Next Step"
disabled={ !validateSeed(selected.seed).valid }
onPress={() => {
selected.address &&
selected.address.length &&
validateSeed(selected.seed).valid &&
this.props.navigation.navigate('AccountBackup', {
isNew: true,
isWelcome: this.props.navigation.getParam('isWelcome')
Expand Down

0 comments on commit d9f2756

Please sign in to comment.