Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion discretize-gear-optimizer
3 changes: 2 additions & 1 deletion src/components/gw2/peepoptimizer/Peepoptimizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import AffixSelect from "./AffixSelect";
import ResultCharacter from "./ResultCharacter";
import type { Character } from "discretize-gear-optimizer/src/state/optimizer/optimizerCore";

const testState = {
const testState: Parameters<typeof import('discretize-gear-optimizer/src/state/optimizer/optimizer').calculate>[0] = {
optimizer: {
userSettings: { expertMode: true, gameMode: "fractals" },
control: {
Expand All @@ -25,6 +25,7 @@ const testState = {
filterMode: "None",
displayAttributes: [],
progress: 0,
heuristicsProgress: undefined,
selectedCharacter: null,
selectedTemplate: "Condi Virtuoso Dueling",
status: "WAITING",
Expand Down
2 changes: 1 addition & 1 deletion src/components/gw2/peepoptimizer/ResultCharacter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function ResultCharacter({
Enhancement: utility,
Nourishment: food,
Runes: runeStringId,
} = extrasCombination || cachedFormState.extras; // fallback for builds from before extras refactor
} = extrasCombination || cachedFormState.extras as any as typeof extrasCombination; // fallback for builds from before extras refactor

const foodId = allExtrasModifiersById[food]?.gw2id;
const utilityId = allExtrasModifiersById[utility]?.gw2id;
Expand Down