classic-ui/modules/account/store/actions/decryptNotes/checkCurrentTx.js
Danil Kovtonyuk 44f31f8b9f
init
2022-04-22 13:14:19 +10:00

7 lines
264 B
JavaScript

export function _checkCurrentTx({ rootGetters }, transactions) {
const currentTransactions = rootGetters['txHashKeeper/allTxsHash']
const newTransactions = transactions.filter((event) => !currentTransactions.includes(event.txHash))
return newTransactions
}