Skip to content

Commit 33183a1

Browse files
committed
Use consistent parameter names
1 parent 019a0b8 commit 33183a1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

android/src/main/java/com/lytics/react_native/LyticsModule.kt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,16 @@ class LyticsModule(reactContext: ReactApplicationContext) :
206206
// Personalization
207207

208208
@ReactMethod
209-
fun getProfile(name: String? = null, value: String? = null, promise: Promise) {
209+
fun getProfile(
210+
identifierName: String? = null,
211+
identifierValue: String? = null,
212+
promise: Promise
213+
) {
210214
var identifier: EntityIdentifier? = null
211-
if (name != null && value != null) {
215+
if (identifierName != null && identifierValue != null) {
212216
identifier = EntityIdentifier(
213-
name = name,
214-
value = value
217+
name = identifierName,
218+
value = identifierValue
215219
)
216220
}
217221
scope.launch {

0 commit comments

Comments
 (0)