Skip to content

Commit

Permalink
feat: Omit total when position is reduced
Browse files Browse the repository at this point in the history
Since the total is only the margin, this would always be 0 sats.
  • Loading branch information
holzeis committed Apr 22, 2024
1 parent 90eb446 commit 9c0a78d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ class TradeBottomSheetConfirmation extends StatelessWidget {
: const SizedBox(height: 0),
],
),
!isClose ? const Divider() : const SizedBox(height: 0),
!isClose
!isClose && !isReduce ? const Divider() : const SizedBox(height: 0),
!isClose && !isReduce
? ValueDataRow(type: ValueType.amount, value: total, label: "Total")
: const SizedBox(height: 0),
],
Expand Down

0 comments on commit 9c0a78d

Please sign in to comment.