diff --git a/src/util/findColor.js b/src/util/findColor.js index 0c4206b3a..56295ad7d 100644 --- a/src/util/findColor.js +++ b/src/util/findColor.js @@ -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) }