filter in out trades from lots selector
This commit is contained in:
parent
d1d693542f
commit
538541cd4d
|
@ -5,7 +5,10 @@ const Api = {
|
||||||
*/
|
*/
|
||||||
async get_lots() {
|
async get_lots() {
|
||||||
const request = await this.doRequest(API_URLS.lots, "GET", null);
|
const request = await this.doRequest(API_URLS.lots, "GET", null);
|
||||||
if (request != undefined) return request.items;
|
if (request != undefined) {
|
||||||
|
request.items = request.items.filter(itm => !itm.trade) // Avoid show outgoing or incomming trades
|
||||||
|
return request.items;
|
||||||
|
}
|
||||||
throw request;
|
throw request;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Reference in New Issue