Skip to content

Commit 6ea73a4

Browse files
committed
Remove unnecessary rule.rules update for conditional rules
1 parent 139ea9f commit 6ea73a4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/styled.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ const styled = ({tagName, elementStyle, mountSheet}: StyledArgs) => {
7474
for (ruleIndex; ruleIndex < classMap[this.dynamicTagName].length; ruleIndex++) {
7575
rule = classMap[this.dynamicTagName][ruleIndex]
7676

77-
if (rule.key) this.sheet.update(rule.key, props)
78-
if (rule.rules) rule.rules.update(props)
77+
this.sheet.update(rule.key, props)
7978
}
8079
}
8180

0 commit comments

Comments
 (0)