Skip to content

Commit

Permalink
fix: also handle nulls
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Feb 8, 2021
1 parent 892535f commit 502a691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/force/user/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const permsetsStringToArray = (fieldsPermsets: string | string[]): string[] => {
};

const standardizePasswordToBoolean = (input: unknown): boolean => {
if (typeof input === 'undefined') {
if (typeof input === 'undefined' || input === null) {
return false;
}
if (typeof input === 'boolean') {
Expand Down

0 comments on commit 502a691

Please sign in to comment.