Skip to content

Commit

Permalink
Clarify voucher result recipient variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Dec 12, 2023
1 parent d559002 commit 1426c90
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ private fun PreviewOutOfTimeScreenError() {
@Composable
fun OutOfTime(
navigator: DestinationsNavigator,
resultRecipient: ResultRecipient<RedeemVoucherDestination, Boolean>,
redeemVoucherResultRecipient: ResultRecipient<RedeemVoucherDestination, Boolean>,
playPaymentResultRecipient: ResultRecipient<PaymentDestination, Boolean>
) {
val vm = koinViewModel<OutOfTimeViewModel>()
val state = vm.uiState.collectAsState().value
resultRecipient.onNavResult {
redeemVoucherResultRecipient.onNavResult {
// If we successfully redeemed a voucher, navigate to Connect screen
if (it is NavResult.Value && it.value) {
navigator.navigate(ConnectDestination) {
Expand All @@ -133,7 +133,7 @@ fun OutOfTime(
}

val openAccountPage = LocalUriHandler.current.createOpenAccountPageHook()
LaunchedEffect(key1 = Unit) {
LaunchedEffect(Unit) {
vm.uiSideEffect.collect { uiSideEffect ->
when (uiSideEffect) {
is OutOfTimeViewModel.UiSideEffect.OpenAccountView ->
Expand Down

0 comments on commit 1426c90

Please sign in to comment.