diff --git a/index.js b/index.js index 128e7ac..88512f1 100644 --- a/index.js +++ b/index.js @@ -164,7 +164,7 @@ function formatCommitMessage(answers, config) { const { columns } = process.stdout const emoji = answers.type - const type = config.types.find(type => type.name === emoji.name).name + const type = emoji.name const scope = answers.scope ? '(' + answers.scope.trim() + ')' : '' const subject = answers.subject.trim()