Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
redirect to home for all transaction types except transfer (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilenkovic authored Apr 21, 2021
1 parent 6907574 commit dc56739
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/views/transaction/transaction.view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,11 @@ const mapDispatchToProps = (dispatch) => ({
dispatch(transactionActions.goToBuildTransactionStep(account, receiver)),
onGoToTransactionOverviewStep: (transaction) =>
dispatch(transactionActions.goToReviewTransactionStep(transaction)),
onFinishTransaction: (transactionType, accountIndex, redirectTo) => {
if (transactionType === TxType.Withdraw || transactionType === TxType.Deposit) {
dispatch(push('/'))
} else {
onFinishTransaction: (transactionType, accountIndex) => {
if (transactionType === TxType.Transfer) {
dispatch(push(`/accounts/${accountIndex}`))
} else {
dispatch(push('/'))
}
},
onDeposit: (amount, account) =>
Expand Down

0 comments on commit dc56739

Please sign in to comment.