navigate back to accounts page insted of account type page
This commit is contained in:
+3
-1
@@ -188,7 +188,9 @@ export default function CreateCustodyAccountPage(props) {
|
||||
}
|
||||
|
||||
setIsCreatingAccount(false);
|
||||
navigate.goBack();
|
||||
navigate.popTo('SettingsContentHome', {
|
||||
for: 'Accounts',
|
||||
});
|
||||
} catch (err) {
|
||||
console.log('Create custody account error', err);
|
||||
setIsCreatingAccount(false);
|
||||
|
||||
+3
-1
@@ -64,7 +64,9 @@ export default function RestoreDerivedAccountPage() {
|
||||
|
||||
if (result.didWork) {
|
||||
// Navigate back to show the restored account
|
||||
navigate.goBack();
|
||||
navigate.popTo('SettingsContentHome', {
|
||||
for: 'Accounts',
|
||||
});
|
||||
} else {
|
||||
navigate.navigate('ErrorScreen', {
|
||||
errorMessage:
|
||||
|
||||
Reference in New Issue
Block a user