Skip to content

Commit b9e40c7

Browse files
committed
refactor: remove unused code
1 parent dbbe482 commit b9e40c7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,7 @@ private fun OnChainDescription(
134134
),
135135
color = Colors.White64,
136136
)
137-
val destination = when (uiState.payMethod) {
138-
SendMethod.ONCHAIN -> uiState.address.ellipsisMiddle(25)
139-
SendMethod.LIGHTNING -> uiState.bolt11?.truncate(100) ?: ""
140-
}
137+
val destination = uiState.address.ellipsisMiddle(25)
141138
Spacer(modifier = Modifier.height(8.dp))
142139
BodySSB(text = destination)
143140
HorizontalDivider(modifier = Modifier.padding(top = 16.dp))
@@ -215,7 +212,7 @@ private fun LightningDescription(
215212
text = stringResource(R.string.wallet__send_invoice),
216213
color = Colors.White64,
217214
)
218-
val destination = uiState.bolt11?.truncate(100).orEmpty()
215+
val destination = uiState.bolt11?.ellipsisMiddle(25).orEmpty()
219216
Spacer(modifier = Modifier.height(8.dp))
220217
BodySSB(text = destination)
221218
HorizontalDivider(modifier = Modifier.padding(top = 16.dp))

0 commit comments

Comments
 (0)