Skip to content

Commit

Permalink
feat(colors): default to given value for getColorGenerator()
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Benitte committed Aug 1, 2017
1 parent 63ee809 commit 3954252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ColorUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const getColorGenerator = instruction => {
return d => rgb(d.color || d.data.color)[method](parseFloat(amount))
}

return instruction
return () => instruction
}

export const getColorStyleObject = (instruction, property) => {
Expand Down

0 comments on commit 3954252

Please sign in to comment.