Skip to content

Commit d350195

Browse files
fix(send): show the order number instead of the internal uuid
1 parent b5226ce commit d350195

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

lib/features/send/ui/screens/send_screen.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ class _LnSwapSendInfoSection extends StatelessWidget {
11231123
children: [
11241124
Flexible(
11251125
child: BBText(
1126-
swap!.orderId!,
1126+
swap!.order!.orderNumber.toString(),
11271127
style: context.font.bodyLarge,
11281128
color: context.appColors.secondary,
11291129
textAlign: .end,
@@ -1132,7 +1132,9 @@ class _LnSwapSendInfoSection extends StatelessWidget {
11321132
const Gap(4),
11331133
InkWell(
11341134
onTap: () {
1135-
Clipboard.setData(ClipboardData(text: swap.orderId!));
1135+
Clipboard.setData(
1136+
ClipboardData(text: swap.order!.orderNumber.toString()),
1137+
);
11361138
},
11371139
child: Icon(
11381140
Icons.copy,
@@ -1385,7 +1387,7 @@ class _ChainSwapSendInfoSection extends StatelessWidget {
13851387
final orderSwap = context.select(
13861388
(SendCubit cubit) => cubit.state.lightningOrder,
13871389
);
1388-
final swapId = orderSwap?.orderId ?? legacySwap!.id;
1390+
final swapId = orderSwap?.order?.orderNumber.toString() ?? legacySwap!.id;
13891391
final sendAmount =
13901392
orderSwap?.order?.payinAmountSat.toInt() ?? legacySwap!.sendAmount!;
13911393
final receiveAmount =

0 commit comments

Comments
 (0)