Skip to content

Commit 3a56c9e

Browse files
authored
Update transpileCssProp.js
1 parent b1b5281 commit 3a56c9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/visitors/transpileCssProp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useCssProp } from '../utils/options'
44

55
const getTag = node => {
66
if (typeof node.name === 'string') return node.name
7-
if (node.type === 'JSXMemberExpression') {
7+
if (t.isJSXMemberExpression(node)) {
88
return `${getTag(node.object)}.${node.property.name}`
99
}
1010
throw path.buildCodeFrameError('Failed to get the name');

0 commit comments

Comments
 (0)