Skip to content

Commit

Permalink
fix: update gitmoji description
Browse files Browse the repository at this point in the history
Update `gitmoji` description to `code` when `emojiFormat` is `emoji`.

close #240
  • Loading branch information
yi-Xu-0100 committed Apr 21, 2022
1 parent 8badb8d commit 0f4fd86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export default async function prompts({
items: gitmojis.gitmojis.map(function ({ emoji, code, description }) {
return {
label: emojiFormat === 'code' ? code : emoji,
description: emojiFormat === 'code' ? emoji : '',
description: emojiFormat === 'code' ? emoji : code,
detail: description,
};
}),
Expand Down

0 comments on commit 0f4fd86

Please sign in to comment.