From 1dfa940b1a83d415c40e9cf1d37ed65dcaa6b80e Mon Sep 17 00:00:00 2001 From: neikvon Date: Mon, 16 Jul 2018 19:05:40 +0800 Subject: [PATCH] fix(types): fix error when 'emoji' option is null --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c273c57..bc8e4fe 100644 --- a/index.js +++ b/index.js @@ -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 })) }