Skip to content

Commit

Permalink
Merge pull request #3501 from xiangxn/fix-3487
Browse files Browse the repository at this point in the history
Fix inaccurate floating point numbers used in credit offers #3487
  • Loading branch information
sschiessl-bcp authored Apr 23, 2022
2 parents 0995347 + 12eea3a commit 155c606
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/components/Account/CreditOffer/CreditOfferPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,6 @@ class CreditOfferPage extends React.Component {
let mortgageAmount = parseFloat(amount) * price.toReal(true); // Keeping it consistent with the App, this may violate Graphene's price representation convention.
if (Number.isNaN(mortgageAmount)) {
mortgageAmount = 0;
} else {
mortgageAmount = Math.ceil(mortgageAmount);
}
let mortgageAsset = new Asset({
asset_id: selectAsset.get("id"),
Expand Down

0 comments on commit 155c606

Please sign in to comment.