Skip to content

Commit

Permalink
fix handling of falsy values in retrieveOptionsFromStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
ynshung committed Jan 28, 2024
1 parent 4c8a8d3 commit d00438a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/retrieveFromStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function retrieveOptionsFromStorage(
);

for (const [option, value] of Object.entries(DEFAULT_OPTIONS)) {
if (extraopts[option]) continue; // * this may be an issue later on if we WANT falsy values as viable values
if (extraopts[option] !== null) continue;
extraopts[option] = value;
}

Expand Down

0 comments on commit d00438a

Please sign in to comment.