Skip to content

Commit d37269e

Browse files
committed
Change toString
1 parent 040d07c commit d37269e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/market_helper.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ MarketHelper =
5151
!!CURRENCIES[currency]
5252

5353
toBignum: (value)->
54-
math.bignumber value.toString()
54+
math.bignumber "#{value}"
5555

5656
convertToBigint: (value)->
5757
parseInt math.multiply(@toBignum(value), @toBignum(100000000))

lib/market_helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
return !!CURRENCIES[currency];
6060
},
6161
toBignum: function(value) {
62-
return math.bignumber(value.toString());
62+
return math.bignumber("" + value);
6363
},
6464
convertToBigint: function(value) {
6565
return parseInt(math.multiply(this.toBignum(value), this.toBignum(100000000)));

0 commit comments

Comments
 (0)