From 3390081e4e049da0329f04df698a1329d6f6f923 Mon Sep 17 00:00:00 2001 From: yuriy Date: Thu, 12 Nov 2020 23:09:54 +0300 Subject: [PATCH] Fix asset service for testnet --- src/services/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/services/index.ts b/src/services/index.ts index 54d6135e..7b92e52d 100644 --- a/src/services/index.ts +++ b/src/services/index.ts @@ -1,9 +1,10 @@ import { IOperation, ITokenInfo } from '../stores/interfaces'; import * as agent from 'superagent'; +import * as _ from 'lodash'; let servers = require('../../appengine-servers.json'); -if(process.env.NETWORK === 'testnet') { +if (process.env.NETWORK === 'testnet') { servers = require('../../appengine-servers.testnet.json'); } @@ -124,7 +125,7 @@ export const getTokensInfo = async ( params, ); - const content = res.body.content; + const content = _.uniqWith(res.body.content, _.isEqual); return { ...res.body, content }; };