Skip to content

Commit

Permalink
revert(cz-git): fix getSingleParams use error param
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhengqbbb committed Apr 26, 2022
1 parent ad3e2ee commit 3c32415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cz-git/src/generator/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const getSingleParams = (answers: Answers, options: CommitizenGitOptions) => {
const scopeList = handleStandardScopes(
getCurrentScopes(options.scopes, options.scopeOverrides, answers.type)
);
if (isSingleItem(options.allowCustomScopes, options.allowCustomIssuePrefixs, scopeList)) {
if (isSingleItem(options.allowCustomScopes, options.allowEmptyScopes, scopeList)) {
mapping.singleScope = scopeList[singleIndex].value;
}
// eslint-disable-next-line prettier/prettier
Expand Down

0 comments on commit 3c32415

Please sign in to comment.