Skip to content

Commit

Permalink
Fix asset service for testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy committed Nov 12, 2020
1 parent 1a6a193 commit 3390081
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/services/index.ts
Original file line number Diff line number Diff line change
@@ -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');
}

Expand Down Expand Up @@ -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 };
};
Expand Down

0 comments on commit 3390081

Please sign in to comment.