Don't normalize color names on look up

This commit is contained in:
Adam Wathan 2017-08-26 23:13:12 -04:00
parent 000eefd609
commit baeb02ebb7

View File

@ -1,9 +1,5 @@
const _ = require('lodash')
module.exports = function findColor(colors, color) {
const colorsNormalized = _.mapKeys(colors, (value, key) => {
return _.camelCase(key)
})
return _.get(colorsNormalized, _.camelCase(color), color)
return _.get(colors, color, color)
}