getPendingAmount only for "send" transaction

pull/320/head
Szymon Lesisz 6 years ago
parent b1c3396f61
commit 75cfd44b3c

@ -95,6 +95,7 @@ export const getPendingSequence = (pending: Array<Transaction>): number => pendi
}, 0); }, 0);
export const getPendingAmount = (pending: Array<Transaction>, currency: string, token: boolean = false): BigNumber => pending.reduce((value: BigNumber, tx: Transaction): BigNumber => { export const getPendingAmount = (pending: Array<Transaction>, currency: string, token: boolean = false): BigNumber => pending.reduce((value: BigNumber, tx: Transaction): BigNumber => {
if (tx.type !== 'send') return value;
if (!token) { if (!token) {
// regular transactions // regular transactions
// add fees from token txs and amount from regular txs // add fees from token txs and amount from regular txs

Loading…
Cancel
Save