Skip to content

Commit

Permalink
fix(suite-native): navigate to receive address screen after account i…
Browse files Browse the repository at this point in the history
…s added
  • Loading branch information
yanascz committed Jan 22, 2025
1 parent 551157e commit 7bbd580
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions suite-native/module-add-accounts/src/hooks/useAddCoinAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,17 @@ export const useAddCoinAccount = () => {
accountIndex: number;
}) => {
switch (flowType) {
case 'home':
navigation.replace(RootStackRoutes.ReceiveStack, {
screen: ReceiveStackRoutes.ReceiveAccount,
params: {
networkSymbol: symbol,
accountType,
accountIndex,
closeActionType: 'close',
},
});
break;
case 'accounts':
navigation.replace(RootStackRoutes.AccountDetail, {
networkSymbol: symbol,
Expand Down

0 comments on commit 7bbd580

Please sign in to comment.