Skip to content

Commit

Permalink
fix(react): styled API prop interpolation (#983)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anber committed Jun 5, 2022
1 parent 65bf7c4 commit 2410499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel/src/evaluators/templateProcessor.ts
Expand Up @@ -192,7 +192,7 @@ export default function getTemplateProcessor(options: StrictOptions) {
try {
const { ex: expression } = expressionValue;
cssText += tagProcessor.addInterpolation(
expression instanceof NodePath ? expression.node : expression,
'node' in expression ? expression.node : expression,
expressionValue.source
);
} catch (e) {
Expand Down

0 comments on commit 2410499

Please sign in to comment.