Skip to content

Commit 6f8ae05

Browse files
fix: Support mutable and immutable attributes in selectPlacement (#74)
1 parent 1d587f3 commit 6f8ae05

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/main/kotlin/com/mparticle/kits/RoktLayout.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ fun RoktLayout(
2222
val resultMapState = remember { mutableStateOf<RoktResult?>(null) }
2323
if (sdkTriggered) {
2424
LaunchedEffect(Unit) {
25-
instance?.runComposableWithCallback(attributes, mpRoktEventCallback, { resultMap, callback ->
26-
resultMapState.value = RoktResult(resultMap, callback)
27-
})
25+
instance?.runComposableWithCallback(
26+
HashMap(attributes), mpRoktEventCallback,
27+
{ resultMap, callback ->
28+
resultMapState.value = RoktResult(resultMap, callback)
29+
},
30+
)
2831
}
2932
}
3033

0 commit comments

Comments
 (0)