Skip to content

Commit

Permalink
change how saved state required field is enforced
Browse files Browse the repository at this point in the history
  • Loading branch information
skedwards88 committed Aug 26, 2024
1 parent 4cf5356 commit 0c5df5b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/logic/customInit.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ export function customInit(useSaved = true) {
? JSON.parse(localStorage.getItem("crossjigCustomCreation"))
: undefined;

if (savedState) {
return {
...savedState,
isCustomCreating: true,
};
if (savedState && savedState.isCustomCreating) {
return savedState;
}

const alphabet = [
Expand Down

0 comments on commit 0c5df5b

Please sign in to comment.