Skip to content

Commit

Permalink
ChartEntryModelState: Rename currentChartEntryModel to `currentVa…
Browse files Browse the repository at this point in the history
…lue`
  • Loading branch information
patrickmichalik committed Sep 25, 2023
1 parent c714d9b commit 8569e29
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ internal class ChartEntryModelState<T : ChartEntryModel> : State<Pair<T?, T?>> {
private set

fun set(value: T) {
val currentChartEntryModel = this.value.first
if (value.id != currentChartEntryModel?.id) previousValue = currentChartEntryModel
val currentValue = this.value.first
if (value.id != currentValue?.id) previousValue = currentValue
this.value = value to previousValue
}
}

0 comments on commit 8569e29

Please sign in to comment.