Skip to content

Commit ad61f3c

Browse files
authored
Update comment for style array handling
Clarify comment about allowed values in style array.
1 parent 2cc049d commit ad61f3c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/runtime/native/react/rules.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,12 @@ export function updateRules(
7171
if (target) {
7272
if (Array.isArray(target)) {
7373
for (const item of target) {
74-
// undefined is allowed in style array
74+
75+
// undefined or falsy is allowed in the style array
7576
if (!item) {
7677
continue;
7778
}
79+
7880
if (VAR_SYMBOL in item) {
7981
inlineVariables.add(item);
8082
} else if (

0 commit comments

Comments
 (0)