Skip to content

Commit 8b15897

Browse files
committed
chore: fix manual merge issues
1 parent d90ee6d commit 8b15897

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,13 @@ fun SendSheet(
302302
)
303303
},
304304
onPaymentPending = { paymentHash, amount ->
305-
appViewModel.preserveContactPaymentContext(paymentHash)navController.navigateTo(SendRoute.Pending(paymentHash, amount)) {
305+
appViewModel.preserveContactPaymentContext(paymentHash)
306+
navController.navigateTo(SendRoute.Pending(paymentHash, amount)) {
306307
popUpTo(startDestination) { inclusive = true }
307308
}
308309
},
309-
onShowError = { errorMessage ->appViewModel.clearActiveContactPaymentContext()
310+
onShowError = { errorMessage ->
311+
appViewModel.clearActiveContactPaymentContext()
310312
navController.navigateTo(SendRoute.Error(errorMessage))
311313
}
312314
)

app/src/main/java/to/bitkit/viewmodels/AppViewModel.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ class AppViewModel @Inject constructor(
14391439
.onSuccess { Logger.info("Handling decoded scan data: $it", context = TAG) }
14401440
.getOrNull()
14411441

1442-
if (isMainScanner && scan.isLightningRelated()) {
1442+
if (isMainScanner && scan.isLightningRelated()) {
14431443
showSheet(Sheet.Send())
14441444
}
14451445

@@ -1458,7 +1458,10 @@ class AppViewModel @Inject constructor(
14581458
is Scanner.Gift -> handleNonPaymentScan { onScanGift(scan.code, scan.amount) }
14591459
else -> {
14601460
hideSheet()
1461-
Logger.warn(if (scan == null) "Failed to decode scan data" else "Received unhandled scan data '$scan'", TAG)
1461+
Logger.warn(
1462+
if (scan == null) "Failed to decode scan data" else "Received unhandled scan data '$scan'",
1463+
context = TAG,
1464+
)
14621465
toast(
14631466
type = Toast.ToastType.WARNING,
14641467
title = context.getString(R.string.other__qr_error_header),

0 commit comments

Comments
 (0)