From c7108da8d3cd9ece2bca8166a53a4be3712a2221 Mon Sep 17 00:00:00 2001 From: Matthew Fettig Date: Fri, 21 Oct 2016 13:05:23 -0700 Subject: [PATCH] fix ripplestate parsing bug (#148) (#149) --- src/common/txsplain.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/txsplain.js b/src/common/txsplain.js index 1853ab3..15602f2 100644 --- a/src/common/txsplain.js +++ b/src/common/txsplain.js @@ -213,14 +213,16 @@ angular.module('txsplain', []) if (finalBalance < 0) { account = fields.HighLimit.issuer; issuer = fields.LowLimit.issuer; - change = previousBalance - finalBalance; finalBalance = 0 - finalBalance; + previousBalance = 0 - previousBalance; + } else { account = fields.LowLimit.issuer; issuer = fields.HighLimit.issuer; - change = finalBalance - previousBalance; } + change = finalBalance - previousBalance; + var html = '
  • It ' + action + ' a ' + '' + fields.Balance.currency + ' ' + 'RippleState ' +