Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
fix ripplestate parsing bug (#148) (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
shekenahglory authored Oct 21, 2016
1 parent 7940924 commit c7108da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/common/txsplain.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<li>It ' + action + ' a ' +
'<b>' + fields.Balance.currency + '</b> ' +
'<type>RippleState</type> ' +
Expand Down

0 comments on commit c7108da

Please sign in to comment.