From 1dfb0f583be618df154a19bad943889bb63b79b9 Mon Sep 17 00:00:00 2001 From: dragoni7 Date: Wed, 4 Sep 2024 11:56:16 -0700 Subject: [PATCH] Fix dashboard --- src/app/routes/Dashboard.tsx | 4 ++-- src/features/armor-optimization/StatsTable.tsx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/routes/Dashboard.tsx b/src/app/routes/Dashboard.tsx index be4a267..63acfab 100644 --- a/src/app/routes/Dashboard.tsx +++ b/src/app/routes/Dashboard.tsx @@ -110,7 +110,7 @@ export const Dashboard: React.FC = () => { (state: RootState) => state.dashboard ); - const [selectedCharacter, setSelectedCharacter] = useState(undefined); + const selectedCharacter = useSelector((state: RootState) => state.profile.selectedCharacter); const [dataLoading, setDataLoading] = useState(true); const [generatingPermutations, setGeneratingPermutations] = useState(false); const [subclasses, setSubclasses] = useState< @@ -264,7 +264,7 @@ export const Dashboard: React.FC = () => { diff --git a/src/features/armor-optimization/StatsTable.tsx b/src/features/armor-optimization/StatsTable.tsx index a3a0ca5..f34be0c 100644 --- a/src/features/armor-optimization/StatsTable.tsx +++ b/src/features/armor-optimization/StatsTable.tsx @@ -196,6 +196,7 @@ const StatsTable: React.FC = ({ permutations, onPermutationClic for (const [stat, costs] of Object.entries(perm.modsArray)) { for (const cost of costs) { + console.log(cost); const mod = await db.manifestArmorStatModDef .where(stat + 'Mod') .equals(cost)