Skip to content

Commit

Permalink
fix(types): fix error when 'emoji' option is null
Browse files Browse the repository at this point in the history
  • Loading branch information
neikvon committed Jul 16, 2018
1 parent 3b0dec6 commit 1dfa940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function getChoices (types) {
)

return types.map(choice => ({
name: `${choice.name.padEnd(maxNameLength, ' ')} ${isWin ? ':' : choice.emoji} ${choice.description}`,
name: `${choice.name.padEnd(maxNameLength, ' ')} ${isWin ? ':' : choice.emoji || ':'} ${choice.description}`,
value: choice.name
}))
}
Expand Down

0 comments on commit 1dfa940

Please sign in to comment.