Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
fix(space): Mission validation not working
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Oct 11, 2022
1 parent 0e21a7b commit 5f338f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/userscript/source/options/MissionSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class MissionSettings extends SettingsSection {
static validateGame(game: GamePage, settings: MissionSettings) {
const inSettings = Object.keys(settings.items);
// TODO: Find a better place in the game where this information is *always* available.
const inGame = (game.space.missions ?? []).map(mission => mission.name);
const inGame = (game.space.programs ?? []).map(program => program.name);

const missingInSettings = difference(inGame, inSettings);
const redundantInSettings = difference(inSettings, inGame);
Expand Down
2 changes: 1 addition & 1 deletion packages/userscript/source/types/gamePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export type GamePage = {
val: number;
};
meta: Array<{ meta: Array<{ label: string; name: string; unlocked: boolean; val: number }> }>;
missions: Array<{ name: Missions }>;
programs: Array<{ name: Missions }>;
};
tabs: [
GameTab,
Expand Down

0 comments on commit 5f338f4

Please sign in to comment.