Skip to content

Commit

Permalink
fix: 🐛 update gitmoji description (#241)
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 22, 2022
1 parent 8badb8d commit aa24fdd
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 aa24fdd

Please sign in to comment.