classic-ui/modules/account/store/actions/decryptNotes/checkCurrentTx.js

7 lines
270 B
JavaScript
Raw Normal View History

2022-10-13 16:50:29 +03:00
export function _checkCurrentTx({ rootGetters }, transactions) {
const currentTransactions = rootGetters['txHashKeeper/allTxsHash']
const newTransactions = transactions.filter((event) => !currentTransactions.includes(event.txHash))
return newTransactions
}