Skip to content

Commit

Permalink
Fix dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoni7 committed Sep 4, 2024
1 parent 07aa11f commit 1dfb0f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/routes/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const Dashboard: React.FC = () => {
(state: RootState) => state.dashboard
);

const [selectedCharacter, setSelectedCharacter] = useState<Character | undefined>(undefined);
const selectedCharacter = useSelector((state: RootState) => state.profile.selectedCharacter);
const [dataLoading, setDataLoading] = useState<boolean>(true);
const [generatingPermutations, setGeneratingPermutations] = useState(false);
const [subclasses, setSubclasses] = useState<
Expand Down Expand Up @@ -264,7 +264,7 @@ export const Dashboard: React.FC = () => {
<Container>
<NewComponentWrapper>
<ExoticSelector
selectedCharacter={selectedCharacter}
selectedCharacter={selectedCharacter!}
selectedExoticItemHash={selectedExotic.itemHash}
/>
</NewComponentWrapper>
Expand Down
1 change: 1 addition & 0 deletions src/features/armor-optimization/StatsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ const StatsTable: React.FC<StatsTableProps> = ({ 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)
Expand Down

0 comments on commit 1dfb0f5

Please sign in to comment.