Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Add logging to DonateViewModel.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
ILIYANGERMANOV committed Jun 11, 2022
1 parent 259056d commit be67294
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/com/ivy/wallet/ui/donate/DonateViewModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import com.ivy.wallet.ui.donate.data.DonateOption
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.launch
import timber.log.Timber
import javax.inject.Inject

@HiltViewModel
Expand Down Expand Up @@ -55,6 +56,7 @@ class DonateViewModel @Inject constructor(
DonateOption.DONATE_100 -> IvyBilling.DONATE_100
}
} then { targetSku ->
Timber.i("Donating to sku \"$targetSku\"")
plans.find { it.sku == targetSku }
} then { plan ->
if (plan != null) {
Expand Down

0 comments on commit be67294

Please sign in to comment.