contract shard env hotfix (#242)

Co-authored-by: jenya <hypnagonia>
pull/243/head
Jenya 2 years ago committed by GitHub
parent 082950dece
commit 5490f00232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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 = {};

Loading…
Cancel
Save