Skip to content

Commit

Permalink
Fixing lint;
Browse files Browse the repository at this point in the history
using === undefined instead of lodash
  • Loading branch information
Luiz Gustavo Abou Hatem De Liz committed Jul 17, 2023
1 parent 9844c15 commit a894740
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { TokenPriceService } from '@balancer-labs/sor';
import axios from 'axios';
import { BALANCER_NETWORK_CONFIG } from '@/lib/constants/config';
import { Network, BalancerNetworkConfig } from '@/types';
import { isUndefined } from "lodash";

export class CoingeckoTokenPriceService implements TokenPriceService {
constructor(private readonly chainId: number) {}
Expand Down Expand Up @@ -33,8 +32,8 @@ export class CoingeckoTokenPriceService implements TokenPriceService {
});

if (
isUndefined(data[tokenAddress.toLowerCase()]) ||
isUndefined(data[tokenAddress.toLowerCase()][this.nativeAssetId])
data[tokenAddress.toLowerCase()] === undefined ||
data[tokenAddress.toLowerCase()][this.nativeAssetId] === undefined
) {
throw Error('No price returned from Coingecko');
}
Expand Down

0 comments on commit a894740

Please sign in to comment.