fix: calculate pending amount

pull/2/merge
Szymon Lesisz 6 years ago
parent 46c1f8b2b7
commit 47af92ae2c

@ -100,7 +100,7 @@ export const getPendingNonce = (pending: Array<PendingTx>): number => {
export const getPendingAmount = (pending: Array<PendingTx>, currency: string): BigNumber => {
return pending.reduce((value: BigNumber, tx: PendingTx) => {
if (tx.currency === currency) {
return new BigNumber(value).plus(tx.amount);
return new BigNumber(value).plus(tx.total);
}
return value;
}, new BigNumber('0'));

Loading…
Cancel
Save