Skip to content

Commit

Permalink
MetricTable - reversePerformer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
manishiwa committed Nov 7, 2024
1 parent fecedba commit a7eedb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/metric/MetricTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import VerticalScrollContainer from "@/components/VerticalScrollContainer";
import HorizontalScrollContainer from "@/components/HorizontalScrollContainer";
import Link from "next/link";
import { useMaster } from "@/contexts/MasterContext";
import { metricItems } from "@/lib/metrics";
import { metricItems, daMetricItems } from "@/lib/metrics";
import { GTPIcon } from "@/components/layout/GTPIcon";
import { GridTableContainer, GridTableHeader, GridTableHeaderCell, GridTableRow } from "@/components/layout/GridTable";
import { useMetricChartControls } from "./MetricChartControlsContext";
Expand Down Expand Up @@ -118,10 +118,10 @@ const MetricTable = ({
const { theme } = useTheme();

const [showGwei, reversePerformer] = useMemo(() => {
const item = metricItems.find((item) => item.key === metric_id);
const item = metric_type === "fundamentals" ? metricItems.find((item) => item.key === metric_id) : daMetricItems.find((item) => item.key === metric_id);

return [item?.page?.showGwei, item?.page?.reversePerformer];
}, [metric_id]);
}, [metric_id, metric_type]);

const { isSidebarOpen, isSafariBrowser } = useUIContext();

Expand Down

0 comments on commit a7eedb3

Please sign in to comment.