Skip to content

Commit

Permalink
Merge pull request #109 from mydoge-com/fix-new-wallet-tx-bug
Browse files Browse the repository at this point in the history
Bug fix: Wallet tx not loading after wallet import
  • Loading branch information
alexanvl authored Dec 19, 2024
2 parents baff4ac + 263145d commit 72318f7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
10 changes: 9 additions & 1 deletion views/Auth/ResetWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@ export const ResetWallet = () => {
({ authenticated, wallet }) => {
dispatch({
type: DISPATCH_TYPES.SIGN_IN,
payload: { authenticated, wallet, navigate: 'Success' },
payload: {
authenticated,
wallet,
navigate: 'Success',
},
});
dispatch({
type: DISPATCH_TYPES.SELECT_WALLET,
payload: { index: 0 },
});
},
[dispatch]
Expand Down
4 changes: 4 additions & 0 deletions views/Onboarding/CreateWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ export const CreateWallet = () => {
navigate: '/Success',
},
});
dispatch({
type: DISPATCH_TYPES.SELECT_WALLET,
payload: { index: 0 },
});
dispatch({
type: DISPATCH_TYPES.SET_ONBOARDING_COMPLETE,
payload: true,
Expand Down
10 changes: 9 additions & 1 deletion views/Onboarding/ImportWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@ export const ImportWallet = () => {
({ authenticated, wallet }) => {
dispatch({
type: DISPATCH_TYPES.SIGN_IN,
payload: { authenticated, wallet, navigate: '/Success' },
payload: {
authenticated,
wallet,
navigate: '/Success',
},
});
dispatch({
type: DISPATCH_TYPES.SELECT_WALLET,
payload: { index: 0 },
});
dispatch({
type: DISPATCH_TYPES.SET_ONBOARDING_COMPLETE,
Expand Down

0 comments on commit 72318f7

Please sign in to comment.