File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
app/src/main/java/to/bitkit/ui/screens/wallets/send Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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))
You can’t perform that action at this time.
0 commit comments