Commit 97053acf authored by Thibaut Sardan's avatar Thibaut Sardan
Browse files

fix(): return

parent 36e7920b
......@@ -105,7 +105,7 @@ class AccountRecoverView extends React.Component {
const validation = validateSeed(selected.seed, selected.validBip39Seed);
if (!validation.valid) {
if (validation.accountRecoveryAllowed){
Alert.alert(
return Alert.alert(
'Warning:',
`${validation.reason}`,
[
......@@ -127,9 +127,8 @@ class AccountRecoverView extends React.Component {
}
]
);
return;
} else {
Alert.alert(
return Alert.alert(
'Error:',
`${validation.reason}`,
[
......@@ -139,7 +138,6 @@ class AccountRecoverView extends React.Component {
}
]
);
return;
}
}
this.props.navigation.navigate('AccountPin', {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment