Skip to content

Commit

Permalink
test: slip in fix for #431
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathantneal committed Mar 8, 2021
1 parent 6c2fe90 commit bfb9c27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const createCss = (init) => {
variantInput = { ...variantInput }

for (const defaultVariantName in defaultVariants) {
if (variantInput[defaultVariantName] === undefined && !variantProps[defaultVariantName][variantInput[defaultVariantName]]) {
if (variantInput[defaultVariantName] === undefined && !Object(variantProps[defaultVariantName])[variantInput[defaultVariantName]]) {
variantInput[defaultVariantName] = defaultVariants[defaultVariantName]
}
}
Expand Down Expand Up @@ -286,8 +286,8 @@ const createCss = (init) => {
if (props) {
classNames.add(className)

for (const variant of variants) {
const variantClassName = variant(props, defaultVariants)
for (const applyVariant of variants) {
const variantClassName = applyVariant(props, defaultVariants)

if (variantClassName) {
classNames.add(variantClassName)
Expand Down

0 comments on commit bfb9c27

Please sign in to comment.