Skip to content

Commit

Permalink
fix chalkBgColor cache
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 2, 2018
1 parent 4bdd034 commit 66eba0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/chalk.js
Expand Up @@ -23,7 +23,7 @@ const _bgColorCache = {}
export function chalkBgColor (name) {
let color = _bgColorCache[name]
if (color) {
return _bgColorCache
return color
}

if (name[0] === '#') {
Expand Down

0 comments on commit 66eba0f

Please sign in to comment.