From 33183a11f771e846f953c71ed7a3094d61d3a45c Mon Sep 17 00:00:00 2001 From: Matt Gacy Date: Wed, 17 Jan 2024 07:38:50 -0700 Subject: [PATCH] Use consistent parameter names --- .../java/com/lytics/react_native/LyticsModule.kt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/android/src/main/java/com/lytics/react_native/LyticsModule.kt b/android/src/main/java/com/lytics/react_native/LyticsModule.kt index 5ffaf26..95f63bd 100644 --- a/android/src/main/java/com/lytics/react_native/LyticsModule.kt +++ b/android/src/main/java/com/lytics/react_native/LyticsModule.kt @@ -206,12 +206,16 @@ class LyticsModule(reactContext: ReactApplicationContext) : // Personalization @ReactMethod - fun getProfile(name: String? = null, value: String? = null, promise: Promise) { + fun getProfile( + identifierName: String? = null, + identifierValue: String? = null, + promise: Promise + ) { var identifier: EntityIdentifier? = null - if (name != null && value != null) { + if (identifierName != null && identifierValue != null) { identifier = EntityIdentifier( - name = name, - value = value + name = identifierName, + value = identifierValue ) } scope.launch {