Skip to content

Commit f23ee1c

Browse files
committed
fix(send): swipe-to-pay ui regression
1 parent 311c4fc commit f23ee1c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

app/src/main/java/to/bitkit/ui/screens/wallets/send/SendConfirmScreen.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,7 @@ fun SendConfirmScreen(
118118

119119
// Confirm with pin or bio if required
120120
LaunchedEffect(uiState.shouldConfirmPay) {
121-
if (!uiState.shouldConfirmPay) {
122-
isLoading = false
123-
return@LaunchedEffect
124-
}
125-
121+
if (!uiState.shouldConfirmPay) return@LaunchedEffect
126122
if (isPinEnabled && pinForPayments) {
127123
currentOnEvent(SendEvent.ClearPayConfirmation)
128124
if (isBiometricEnabled && isBiometrySupported) {

app/src/main/java/to/bitkit/ui/sheets/SendSheet.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,12 @@ fun SendSheet(
220220
}
221221
composableWithDefaultTransitions<SendRoute.PinCheck> {
222222
SendPinCheckScreen(
223-
onBack = { navController.popBackStack() },
223+
onBack = {
224+
navController.previousBackStackEntry
225+
?.savedStateHandle
226+
?.set(PIN_CHECK_RESULT_KEY, false)
227+
navController.popBackStack()
228+
},
224229
onSuccess = {
225230
navController.previousBackStackEntry
226231
?.savedStateHandle

0 commit comments

Comments
 (0)