From e7db68b7b9cc07d1f5e7df3449ed30aa81d5d435 Mon Sep 17 00:00:00 2001 From: Augusto Carmo Date: Thu, 21 Sep 2023 14:25:14 -0300 Subject: [PATCH] fix(delegates): ParseDelegate was ignoring the name param on setValue --- ktx/src/main/java/com/parse/ktx/delegates/SafeParseDelegate.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ktx/src/main/java/com/parse/ktx/delegates/SafeParseDelegate.kt b/ktx/src/main/java/com/parse/ktx/delegates/SafeParseDelegate.kt index 351645bfb..8f5ec4766 100644 --- a/ktx/src/main/java/com/parse/ktx/delegates/SafeParseDelegate.kt +++ b/ktx/src/main/java/com/parse/ktx/delegates/SafeParseDelegate.kt @@ -29,7 +29,7 @@ class SafeParseDelegate(private val name: String?) { } operator fun setValue(parseObject: ParseObject, property: KProperty<*>, t: T?) { - parseObject.putOrRemove(property.name, t) + parseObject.putOrRemove(name ?: property.name, t) } }