Add TODO comment for fixing workaround for rippled bug

This commit is contained in:
Alan Cohen
2016-02-12 10:56:35 -08:00
parent 06f847c2d0
commit 353637a0c0

View File

@@ -58,6 +58,8 @@ function isPartialPayment(tx) {
function parseDeliveredAmount(tx: Object): Amount | void {
let deliveredAmount;
// TODO: Workaround for existing rippled bug where delivered_amount may not be
// provided for account_tx
if (tx.TransactionType === 'Payment') {
if (tx.meta.delivered_amount) {
deliveredAmount = parseAmount(tx.meta.delivered_amount);