Skip to content

Commit

Permalink
Merge branch 'main' of github.com:gvorbeck/codex-quest into refactor-…
Browse files Browse the repository at this point in the history
…selector
  • Loading branch information
gvorbeck committed Jan 20, 2024
2 parents 978d43f + 7aec658 commit f9f76ab
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/components/PageNewCharacter/StepClass/StepClass.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ const StepClass: React.FC<

// EFFECTS
React.useEffect(() => {
console.log("foo");
setStartingSpells([]);
setCustomClass(undefined);
if (standardClass) {
Expand Down Expand Up @@ -275,6 +276,20 @@ const StepClass: React.FC<
key={className}
/>
))}
{!character.class.includes("Custom") &&
!!character.class.length &&
character.class.map(
(className) =>
classes[className as ClassNames] && (
<RaceClassDescription
key={className}
name={className}
description={`${
classes[className as ClassNames]?.details?.description
}`}
/>
),
)}
</Flex>
);
};
Expand Down

0 comments on commit f9f76ab

Please sign in to comment.