Skip to content

Commit

Permalink
Merge pull request #2624 from get10101/fix/hide-margin-when-closing
Browse files Browse the repository at this point in the history
fix: Don't show margin when closing position
  • Loading branch information
holzeis authored Jun 17, 2024
2 parents f632f0e + 685f5d4 commit c268849
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class TradeBottomSheetConfirmation extends StatelessWidget {
type: ValueType.fiat,
value: tradeValues.price ?? 0.0,
label: 'Market Price'),
if (!isReduce)
if (!(isReduce || isClose))
ValueDataRow(
type: ValueType.amount, value: tradeValues.margin, label: 'Margin'),
if (isReduce || isClose || isChangedDirection)
Expand Down

0 comments on commit c268849

Please sign in to comment.