Skip to content

Commit 89fd91e

Browse files
committed
chore: fix lint
1 parent 42c85e8 commit 89fd91e

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

app/src/main/java/to/bitkit/ui/components/NumberPadTextField.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,11 @@ fun AmountInputHandler(
189189
LaunchedEffect(input) {
190190
val sats = when (primaryDisplay) {
191191
PrimaryDisplay.BITCOIN -> {
192-
if (displayUnit == BitcoinDisplayUnit.MODERN) input
193-
else (input.toLongOrDefault() * SATS_IN_BTC).toString()
192+
if (displayUnit == BitcoinDisplayUnit.MODERN) {
193+
input
194+
} else {
195+
(input.toLongOrDefault() * SATS_IN_BTC).toString()
196+
}
194197
}
195198

196199
PrimaryDisplay.FIAT -> {

app/src/main/java/to/bitkit/ui/screens/wallets/receive/ReceiveSheet.kt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,18 @@ fun ReceiveSheet(
8181
cjitInvoice = cjitInvoice,
8282
cjitActive = showCreateCjit,
8383
walletState = walletState,
84-
onCjitToggle = { active ->
84+
onCjitToggle = { isOn ->
8585
when {
86-
active && lightningState.shouldBlockLightning -> navController.navigate(ReceiveRoute.GeoBlock)
86+
isOn && lightningState.shouldBlockLightning -> {
87+
navController.navigate(ReceiveRoute.GeoBlock)
88+
}
8789

88-
!active -> {
90+
!isOn -> {
8991
showCreateCjit.value = false
9092
cjitInvoice.value = null
9193
}
9294

93-
active && cjitInvoice.value == null -> {
95+
isOn && cjitInvoice.value == null -> {
9496
showCreateCjit.value = true
9597
navController.navigate(ReceiveRoute.Amount)
9698
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ private fun Content(
6565

6666
FillHeight()
6767
Image(
68-
painter = painterResource(R.drawable.restore), contentDescription = null, modifier = Modifier.width(256.dp)
68+
painter = painterResource(R.drawable.restore),
69+
contentDescription = null,
70+
modifier = Modifier.width(256.dp)
6971
)
7072
FillHeight()
7173

0 commit comments

Comments
 (0)