Skip to content

Commit 5298be4

Browse files
author
Supriya S
committed
combine src and dest attr only when they are different
1 parent dbb9883 commit 5298be4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resolveStringLiteral.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default (
3333
return typeof attribute.name !== 'undefined' && attribute.name.name === destinationName;
3434
});
3535

36-
if (destinationAttribute) {
36+
if (destinationAttribute && sourceAttribute.name.name != destinationName) {
3737
if (isStringLiteral(destinationAttribute.value)) {
3838
destinationAttribute.value.value += ' ' + resolvedStyleName;
3939
} else if (isJSXExpressionContainer(destinationAttribute.value)) {

0 commit comments

Comments
 (0)