Skip to content

Commit

Permalink
fix(delegates): ParseDelegate was ignoring the name param on setValue
Browse files Browse the repository at this point in the history
  • Loading branch information
augusto-carmo-mesa committed Sep 21, 2023
1 parent 697d213 commit e7db68b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class SafeParseDelegate<T>(private val name: String?) {
}

operator fun setValue(parseObject: ParseObject, property: KProperty<*>, t: T?) {
parseObject.putOrRemove(property.name, t)
parseObject.putOrRemove(name ?: property.name, t)
}
}

Expand Down

0 comments on commit e7db68b

Please sign in to comment.