|
|
@ -23,6 +23,7 @@ function transformState(state) { |
|
|
|
state?.IncomingTransactionsController?.incomingTransactions; |
|
|
|
state?.IncomingTransactionsController?.incomingTransactions; |
|
|
|
if (Array.isArray(transactions)) { |
|
|
|
if (Array.isArray(transactions)) { |
|
|
|
transactions.forEach((transaction) => { |
|
|
|
transactions.forEach((transaction) => { |
|
|
|
|
|
|
|
if (transaction) { |
|
|
|
if ( |
|
|
|
if ( |
|
|
|
transaction.type !== TRANSACTION_TYPES.RETRY && |
|
|
|
transaction.type !== TRANSACTION_TYPES.RETRY && |
|
|
|
transaction.type !== TRANSACTION_TYPES.CANCEL |
|
|
|
transaction.type !== TRANSACTION_TYPES.CANCEL |
|
|
@ -30,16 +31,19 @@ function transformState(state) { |
|
|
|
transaction.type = transaction.transactionCategory; |
|
|
|
transaction.type = transaction.transactionCategory; |
|
|
|
} |
|
|
|
} |
|
|
|
delete transaction.transactionCategory; |
|
|
|
delete transaction.transactionCategory; |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (incomingTransactions) { |
|
|
|
if (incomingTransactions) { |
|
|
|
const incomingTransactionsEntries = Object.entries(incomingTransactions); |
|
|
|
const incomingTransactionsEntries = Object.entries(incomingTransactions); |
|
|
|
incomingTransactionsEntries.forEach(([key, transaction]) => { |
|
|
|
incomingTransactionsEntries.forEach(([key, transaction]) => { |
|
|
|
|
|
|
|
if (transaction) { |
|
|
|
delete transaction.transactionCategory; |
|
|
|
delete transaction.transactionCategory; |
|
|
|
state.IncomingTransactionsController.incomingTransactions[key] = { |
|
|
|
state.IncomingTransactionsController.incomingTransactions[key] = { |
|
|
|
...transaction, |
|
|
|
...transaction, |
|
|
|
type: TRANSACTION_TYPES.INCOMING, |
|
|
|
type: TRANSACTION_TYPES.INCOMING, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
return state; |
|
|
|
return state; |
|
|
|