From da14dee51ddfa2c8c3d0ca76232fd724d7113f78 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sun, 26 May 2024 15:08:48 +0200 Subject: [PATCH] fix: base hardware listing on current fit (not preview) (#139) --- src/components/HardwareListing/HardwareListing.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/HardwareListing/HardwareListing.tsx b/src/components/HardwareListing/HardwareListing.tsx index 7afec2a..03dfe95 100644 --- a/src/components/HardwareListing/HardwareListing.tsx +++ b/src/components/HardwareListing/HardwareListing.tsx @@ -4,7 +4,7 @@ import React from "react"; import { defaultDataUrl } from "@/settings"; import { Icon } from "@/components/Icon"; import { TreeListing, TreeHeader, TreeLeaf } from "@/components/TreeListing"; -import { useStatistics } from "@/providers/StatisticsProvider"; +import { useCurrentStatistics } from "@/providers/StatisticsProvider"; import { useFitManager } from "@/providers/FitManagerProvider"; import { useEveData } from "@/providers/EveDataProvider"; import { CalculationSlotType } from "@/providers/DogmaEngineProvider"; @@ -124,7 +124,7 @@ const ModuleGroup = (props: { level: number; group: ListingGroup; hideGroup?: bo */ export const HardwareListing = () => { const eveData = useEveData(); - const statistics = useStatistics(); + const statistics = useCurrentStatistics(); const [search, setSearch] = React.useState(""); const [filter, setFilter] = React.useState({