Skip to content

Commit

Permalink
Removed conversion from chaos to exa when adding filter since this is…
Browse files Browse the repository at this point in the history
… unexpected behavior
  • Loading branch information
licoffe committed Jun 27, 2017
1 parent 9890780 commit 381db01
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,11 @@ $( document).ready( function() {
}
formData.affixesDis.push( affix );
});
// console.log( formData.affixes );
// console.log( formData.league );
// console.log( currencyRates );
if ( formData.budget > currencyRates[formData.league].exa && formData.currency === "chaos" ) {
formData.budget /= currencyRates[formData.league].exa;
formData.currency = "exa";
}
// Convert price to exa if higher than exa rate
// if ( formData.budget > currencyRates[formData.league].exa && formData.currency === "chaos" ) {
// formData.budget /= currencyRates[formData.league].exa;
// formData.currency = "exa";
// }
if ( formData.budget ) {
formData.budget = Math.round( formData.budget * 100 ) / 100;
formData.displayPrice = formData.budget + " " + formData.currency;
Expand Down

0 comments on commit 381db01

Please sign in to comment.