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

7 lines
264 B
JavaScript
Raw Permalink Normal View History

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