AugurProject/augur-ui

View on GitHub
src/modules/trades/helpers/is-current-market.js

Summary

Maintainability
A
0 mins
Test Coverage
import { isOnTradePage } from "modules/trades/helpers/is-on-trade-page";
import { getTradePageMarketId } from "modules/trades/helpers/get-trade-page-market-id";

export const isCurrentMarket = marketId => {
  if (!isOnTradePage()) return false;
  if (marketId === getTradePageMarketId()) return true;
  return false;
};