Skip to content

Commit 408ec89

Browse files
committed
fix: dismiss sheet when no backstack
1 parent d145b33 commit 408ec89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fun PinSheet(
4949
onPinChosen = { pin ->
5050
navController.navigateTo(PinRoute.Confirm(pin))
5151
},
52-
onBack = { navController.popBackStack() },
52+
onBack = { if (!navController.popBackStack()) onDismiss() },
5353
)
5454
}
5555
composableWithDefaultTransitions<PinRoute.Confirm> {

0 commit comments

Comments
 (0)