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

Commit

Permalink
fix: Duplicate option ID
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Sep 25, 2022
1 parent 6ebc01a commit 443cd04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/userscript/source/ui/SpaceSettingsUi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,11 @@ export class SpaceSettingsUi extends SettingsSectionUi<SpaceSettings> {
const header = this._getHeader("Additional options");

const missionsButton = this._getOption(
"races",
"missions",
addition.unlockMissions,
this._host.i18n("ui.upgrade.missions"),
false,
false,
{
onCheck: () => {
this._host.updateOptions(() => (addition.unlockMissions.enabled = true));
Expand Down Expand Up @@ -222,6 +223,7 @@ export class SpaceSettingsUi extends SettingsSectionUi<SpaceSettings> {
mission,
missionLabel,
false,
false,
{
onCheck: () => {
this._host.updateOptions(() => (mission.enabled = true));
Expand Down

0 comments on commit 443cd04

Please sign in to comment.