From 32321b263bd7255dc7353135ae0304c93dd6e9d8 Mon Sep 17 00:00:00 2001 From: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com> Date: Mon, 27 Nov 2023 16:58:56 +0100 Subject: [PATCH] Revert "temp: remove liquidation price (#661)" (#663) This reverts commit 0cba668c82c264b8d6b1cb556e722fe1c7d1382e. --- .../TradeModule/SwapForm/TradeSummary.tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/components/Trade/TradeModule/SwapForm/TradeSummary.tsx b/src/components/Trade/TradeModule/SwapForm/TradeSummary.tsx index 69ebfe5c..188d3b03 100644 --- a/src/components/Trade/TradeModule/SwapForm/TradeSummary.tsx +++ b/src/components/Trade/TradeModule/SwapForm/TradeSummary.tsx @@ -3,6 +3,7 @@ import debounce from 'lodash.debounce' import React, { useEffect, useMemo, useState } from 'react' import ActionButton from 'components/Button/ActionButton' +import { CircularProgress } from 'components/CircularProgress' import DisplayCurrency from 'components/DisplayCurrency' import Divider from 'components/Divider' import { FormattedNumber } from 'components/FormattedNumber' @@ -121,6 +122,24 @@ export default function TradeSummary(props: Props) { )} + <> + +
+ {isUpdatingLiquidationPrice ? ( + + ) : liquidationPrice === null || liquidationPrice === 0 ? ( + '-' + ) : ( + + )} +
+
+ +