Skip to content

Commit 9c77a92

Browse files
committed
chore(scanner): always open token selection modal for Give flow
Signed-off-by: Brandon McAnsh <[email protected]>
1 parent 0258378 commit 9c77a92

File tree

1 file changed

+1
-13
lines changed
  • apps/flipcash/features/scanner/src/main/kotlin/com/flipcash/app/scanner/internal

1 file changed

+1
-13
lines changed

apps/flipcash/features/scanner/src/main/kotlin/com/flipcash/app/scanner/internal/Scanner.kt

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,13 @@ internal fun Scanner(deepLink: DeeplinkType?) {
6060
navigator = navigator
6161
)
6262

63-
64-
6563
BillContainer(
6664
isPaused = isPaused,
6765
isCameraReady = previewing == true,
6866
isCameraStarted = cameraStarted,
6967
onStartCamera = { cameraStarted = true },
7068
onAction = {
71-
when (it) {
72-
ScannerDecorItem.Give -> {
73-
val tokens = session.state.value.tokens
74-
if (tokens.count() < 2) {
75-
navigator.show(ScreenRegistry.get(AppRoute.Main.Give(tokens.firstOrNull())))
76-
} else {
77-
navigator.show(ScreenRegistry.get(AppRoute.Sheets.TokenSelection))
78-
}
79-
}
80-
else -> navigator.show(ScreenRegistry.get(it.screen))
81-
}
69+
navigator.show(ScreenRegistry.get(it.screen))
8270
},
8371
scannerView = {
8472
CodeScanner(

0 commit comments

Comments
 (0)