fix enroll sync flow
This commit is contained in:
parent
51db5ba692
commit
872b060515
1 changed files with 9 additions and 11 deletions
|
@ -60,6 +60,10 @@ class VerificationScreen extends React.PureComponent {
|
||||||
if (this.state.isEmailVerified && !deviceWalletSynced) {
|
if (this.state.isEmailVerified && !deviceWalletSynced) {
|
||||||
this.setState({ currentPage: 'syncVerify' });
|
this.setState({ currentPage: 'syncVerify' });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.state.isEmailVerified && syncFlow && deviceWalletSynced) {
|
||||||
|
navigation.goBack();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (this.state.isEmailVerified && !this.state.isIdentityVerified && !this.state.isRewardApproved) {
|
if (this.state.isEmailVerified && !this.state.isIdentityVerified && !this.state.isRewardApproved) {
|
||||||
this.setState({ currentPage: 'phoneVerify' });
|
this.setState({ currentPage: 'phoneVerify' });
|
||||||
|
@ -67,17 +71,11 @@ class VerificationScreen extends React.PureComponent {
|
||||||
if (this.state.isEmailVerified && this.state.isIdentityVerified && !this.state.isRewardApproved) {
|
if (this.state.isEmailVerified && this.state.isIdentityVerified && !this.state.isRewardApproved) {
|
||||||
this.setState({ currentPage: 'manualVerify' });
|
this.setState({ currentPage: 'manualVerify' });
|
||||||
}
|
}
|
||||||
}
|
if (this.state.isEmailVerified && this.state.isRewardApproved) {
|
||||||
|
// verification steps already completed
|
||||||
if (this.state.isEmailVerified && syncFlow && deviceWalletSynced) {
|
// simply navigate back to the rewards page
|
||||||
navigation.goBack();
|
navigation.goBack();
|
||||||
return;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (this.state.isEmailVerified && this.state.isRewardApproved) {
|
|
||||||
// verification steps already completed
|
|
||||||
// simply navigate back to the rewards page
|
|
||||||
navigation.goBack();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue