AugurProject/augur-ui

View on GitHub
src/modules/trades/helpers/get-trade-page-market-id.js

Summary

Maintainability
A
0 mins
Test Coverage
import { formatEthereumAddress } from "speedomatic";

export const getTradePageMarketId = () => {
  const locationHash = document.location.hash.split("id=");
  if (locationHash.length <= 1) return false;
  return formatEthereumAddress(locationHash[locationHash.length - 1]);
};