Skip to content

Commit

Permalink
Change DLC settings from opt-out to opt-in
Browse files Browse the repository at this point in the history
  • Loading branch information
Gredelston committed Jan 9, 2019
1 parent d7dc11c commit 61acb63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/DataUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function addElementProperties(persona) {
}
function isDlcPersonaOwned(dlcPersona) {
if (!localStorage["dlcPersona"])
return true;
return false;
return JSON.parse(localStorage["dlcPersona"])[dlcPersona] === true;
}
/**
Expand Down
4 changes: 2 additions & 2 deletions src/DataUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function addElementProperties(persona: PersonaData) : void {
}

function isDlcPersonaOwned(dlcPersona: string): boolean {
if (!localStorage["dlcPersona"]) return true;
if (!localStorage["dlcPersona"]) return false;

return JSON.parse(localStorage["dlcPersona"])[dlcPersona] === true;
}
Expand Down Expand Up @@ -216,4 +216,4 @@ function getSkillCost(skill: SkillData) {
else {
return "-"
}
}
}

0 comments on commit 61acb63

Please sign in to comment.