Skip to content

Commit

Permalink
Merge pull request #1024 from radixdlt/fix/proper-screen-reject-when-…
Browse files Browse the repository at this point in the history
…authorized-login

Fix request handled on rejection at Login screen
  • Loading branch information
giannis-rdx committed Jul 2, 2024
2 parents dedb23a + 0162ef0 commit 4b75b67
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -584,11 +584,11 @@ class DAppAuthorizedLoginViewModel @Inject constructor(

fun onAbortDappLogin(walletWalletErrorType: DappWalletInteractionErrorType = DappWalletInteractionErrorType.REJECTED_BY_USER) {
viewModelScope.launch {
sendEvent(Event.CloseLoginFlow)
incomingRequestRepository.requestHandled(request.interactionId)
if (!request.isInternal) {
respondToIncomingRequestUseCase.respondWithFailure(request, walletWalletErrorType)
}
sendEvent(Event.CloseLoginFlow)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import com.babylon.wallet.android.presentation.common.OneOffEventHandlerImpl
import com.babylon.wallet.android.presentation.common.StateViewModel
import com.babylon.wallet.android.presentation.common.UiMessage
import com.babylon.wallet.android.presentation.common.UiState
import com.babylon.wallet.android.presentation.dapp.authorized.login.Event
import com.babylon.wallet.android.utils.AppEvent
import com.babylon.wallet.android.utils.AppEventBus
import com.radixdlt.sargon.DappWalletInteractionErrorType
Expand Down

0 comments on commit 4b75b67

Please sign in to comment.