Skip to content

Commit

Permalink
fix(fancy): honor logObj.icon
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 7, 2018
1 parent 3969196 commit d56fa38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reporters/fancy.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class FancyReporter extends BasicReporter {
return chalkBgColor(typeColor).black(` ${logObj.type.toUpperCase()} `)
}

const _type = typeof TYPE_ICONS[logObj.type] === 'string' ? TYPE_ICONS[logObj.type] : logObj.type
const _type = typeof TYPE_ICONS[logObj.type] === 'string' ? TYPE_ICONS[logObj.type] : (logObj.icon || logObj.type)
return _type ? chalkColor(typeColor)(_type) : ''
}

Expand Down

0 comments on commit d56fa38

Please sign in to comment.