Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

Commit 3761e78

Browse files
Merge #380
380: fix: Present sent off-chain payments as negative r=klochowicz a=klochowicz I have tested it with the app running, just forgot to add a screenshot (it displays a `-` instead :) ) Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
2 parents b61681b + d292ae4 commit 3761e78

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/main.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,11 @@ class _TenTenOneState extends State<TenTenOneApp> {
264264
switch (e.flow) {
265265
case bridge_definitions.Flow.Inbound:
266266
type = PaymentType.receive;
267+
amount = Amount(e.sats);
267268
break;
268269
case bridge_definitions.Flow.Outbound:
269270
type = PaymentType.send;
271+
amount = Amount(-e.sats);
270272
break;
271273
}
272274
PaymentStatus status;

0 commit comments

Comments
 (0)