diff --git a/package.json b/package.json index c9a21bf..47bd866 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "substyle", - "version": "3.0.0", + "version": "3.0.1", "description": "Universal styling for reusable React components", "main": "lib/index.js", "scripts": { diff --git a/src/substyle.js b/src/substyle.js index f0a6514..5e47138 100644 --- a/src/substyle.js +++ b/src/substyle.js @@ -1,5 +1,5 @@ import invariant from 'invariant' -import { keys, values, negate, identity, flatten, merge } from 'lodash' +import { keys, values, negate, identity, flatten, merge, assign } from 'lodash' import { filter, map, compose } from 'lodash/fp' import { pickDirectStyles, pickNestedStyles, pickNestedStylesRecursive } from './pickStyles' @@ -72,7 +72,7 @@ function createSubstyle(closureProps) { // assign `style` and/or `className` props to the return function object // TODO call propsDecorator function - Object.assign(substyle, propsForSpread) + assign(substyle, propsForSpread) return substyle }