Skip to content

Commit

Permalink
removed some unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDanz committed Mar 30, 2021
1 parent 204cdb6 commit 693b248
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/augur-simplified/src/modules/common/charts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ export const PriceHistoryChart = ({
cash,
}) => {
const container = useRef(null);
// eslint-disable-next-line
const { maxPriceBigNumber: maxPrice, minPriceBigNumber: minPrice } = market;
const { priceTimeArray } = processPriceTimeData(
formattedOutcomes,
Expand Down Expand Up @@ -234,11 +233,9 @@ export const PriceHistoryChart = ({
}, [selectedOutcomes, options, priceTimeArray]);

useEffect(() => {
// set no data chart and cleanup chart on dismount
const chartContainer = container.current;
NoDataToDisplay(Highcharts);
const chart: HighcartsChart = Highcharts.charts.find(
(chart: HighcartsChart) => chart?.renderTo === chartContainer
);
NoDataToDisplay(Highcharts);
return () => {
Highcharts.charts
.find((chart: HighcartsChart) => chart?.renderTo === chartContainer)
Expand Down

0 comments on commit 693b248

Please sign in to comment.