Skip to content

Commit

Permalink
Merge pull request #90 from Jascha-Sundaresan/allow-falsy-rules
Browse files Browse the repository at this point in the history
allow falsy rules
  • Loading branch information
jxnblk committed Feb 22, 2018
2 parents 195fa06 + 3266bef commit 109e721
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/component.js
Expand Up @@ -18,8 +18,8 @@ module.exports = C => (...args) => {
next.className = [
next.className,
...args.map(a => typeof a === 'function' ? a(styleProps) : a)
.filter(s => s !== null)
.map(s => cxs(s)),
.filter(s => !!s)
.map(s => cxs(s))
cxs(props.css || {})
].join(' ').trim()

Expand Down
2 changes: 1 addition & 1 deletion src/monocomponent.js
Expand Up @@ -15,7 +15,7 @@ module.exports = C => (...args) => {
next.className = [
next.className,
...args.map(a => typeof a === 'function' ? a(styleProps) : a)
.filter(s => s !== null)
.filter(s => !!s)
.map(s => cxs(s))
].join(' ').trim()

Expand Down

0 comments on commit 109e721

Please sign in to comment.