Skip to content

Commit e5e2085

Browse files
author
Victor Saiz
committed
no mutations
1 parent b758730 commit e5e2085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/themr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default (componentName, localTheme, options = {}) => (ThemedComponent) =>
8585
function themeable(style = {}, theme) {
8686
if (!theme) return style
8787
return Object.keys(theme).reduce((result, key) => (
88-
Object.assign(result, { [key]:
88+
Object.assign({}, result, { [key]:
8989
style[key] && theme[key].indexOf(style[key]) === -1
9090
? `${style[key]} ${theme[key]}`
9191
: theme[key] || style[key]

0 commit comments

Comments
 (0)