Skip to content

Commit

Permalink
fix: crash in bot
Browse files Browse the repository at this point in the history
  • Loading branch information
zkrising committed Jul 13, 2024
1 parent 7060728 commit 69867e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/src/utils/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function FormatClass(
const gptConfig = GetGamePTConfig(game, playtype);

// @ts-expect-error hacky access
const classInfo: ClassInfo = gptConfig.classes[classSet]?.find((k) => k.id === classValue);
const classInfo: ClassInfo = gptConfig.classes[classSet]?.find?.((k) => k.id === classValue);

if (!classInfo) {
throw new Error(
Expand Down

0 comments on commit 69867e9

Please sign in to comment.