filter in out trades from lots selector

This commit is contained in:
RubenPX 2022-04-25 11:49:11 +02:00
parent d1d693542f
commit 538541cd4d
1 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,10 @@ const Api = {
*/
async get_lots() {
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;
},