Skip to content

Commit

Permalink
make booleans lower case before compare in utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jwrobdolby committed Oct 29, 2024
1 parent 987f968 commit 5c47928
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export function parseData(data: Record<string, any>) {
const optionsDict: Record<string, any> = {};
//convert strings into boolean if true/false encountered
Object.entries(data).forEach(([key, value]) => {
if (value === "true" || value === "false") {
if (value.toLowerCase() === "true" || value.toLowerCase() === "false") {
const myBool: boolean = value === "true";
optionsDict[key] = myBool;
} else {
Expand Down

0 comments on commit 5c47928

Please sign in to comment.