Skip to content

Commit fa61cae

Browse files
committed
Return first non-null tag
1 parent 19d21a3 commit fa61cae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sentry-compose/src/androidMain/kotlin/io/sentry/compose/gestures/ComposeGestureTargetLocator.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ public class ComposeGestureTargetLocator(private val logger: ILogger) : GestureT
117117
val modifiers = node.getModifierInfo()
118118
for (index in modifiers.indices) {
119119
val modifierInfo = modifiers[index]
120-
composeHelper.extractTag(modifierInfo.modifier).also {
121-
return it
120+
val tag = composeHelper.extractTag(modifierInfo.modifier)
121+
if (tag != null) {
122+
return tag
122123
}
123124
}
124125
return null

0 commit comments

Comments
 (0)