From 18cd6247c02ca95962abcfb75b9c63cc7e37150b Mon Sep 17 00:00:00 2001 From: jenya Date: Tue, 29 Nov 2022 15:35:26 +0400 Subject: [PATCH] ++ --- src/api/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/client.ts b/src/api/client.ts index d976965..99f1968 100644 --- a/src/api/client.ts +++ b/src/api/client.ts @@ -25,7 +25,7 @@ import { eth_traceTransaction } from './rpc' // TODO: hardcode let pairCache: { [pair: string]: IPairPrice } = {}; -const contractShardID = +process.env.REACT_APP_CONTRACT_SHARD || 0 +const contractShardID = process.env.REACT_APP_CONTRACT_SHARD ? (+process.env.REACT_APP_CONTRACT_SHARD || 0) : 0 setInterval(() => { pairCache = {};