mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-29 08:35:49 +00:00
Merge pull request #18 from mjethani/develop
Fixed issue with parsing of trade price.
This commit is contained in:
@@ -137,9 +137,9 @@ OrderBook.prototype.is_valid = function () {
|
||||
|
||||
OrderBook.prototype.trade = function(type) {
|
||||
var tradeStr = '0'
|
||||
+ (this['_currency_' + type] === 'XRP') ? '' : '/'
|
||||
+ ((this['_currency_' + type] === 'XRP') ? '' : '/'
|
||||
+ this['_currency_' + type ] + '/'
|
||||
+ this['_issuer_' + type];
|
||||
+ this['_issuer_' + type]);
|
||||
return Amount.from_json(tradeStr);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user