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

7 lines
264 B
JavaScript
Raw Normal View History

2022-04-22 06:05:56 +03:00
export function _checkCurrentTx({ rootGetters }, transactions) {
const currentTransactions = rootGetters['txHashKeeper/allTxsHash']
const newTransactions = transactions.filter((event) => !currentTransactions.includes(event.txHash))
return newTransactions
}