Skip to content

Commit

Permalink
Use consistent parameter names
Browse files Browse the repository at this point in the history
  • Loading branch information
mgacy committed Jan 17, 2024
1 parent 019a0b8 commit 33183a1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions android/src/main/java/com/lytics/react_native/LyticsModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 33183a1

Please sign in to comment.