From e2fe0697ee9487ab7d93e321378ac42b3d19d9ef Mon Sep 17 00:00:00 2001 From: nahuhh <50635951+nahuhh@users.noreply.github.com> Date: Wed, 16 Oct 2024 16:18:08 +0000 Subject: [PATCH] ui: remove dup USD from market rate tooltip --- basicswap/static/js/offerstable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basicswap/static/js/offerstable.js b/basicswap/static/js/offerstable.js index 815783d..b046bd3 100644 --- a/basicswap/static/js/offerstable.js +++ b/basicswap/static/js/offerstable.js @@ -1442,7 +1442,7 @@ function createTooltipContent(isSentOffers, coinFrom, coinTo, fromAmount, toAmou
Profit/Loss Calculation:
You are ${actionLabel} ${fromAmount.toFixed(8)} ${coinFrom} ($${fromValueUSD.toFixed(2)} USD)
and ${directionLabel} ${toAmount.toFixed(8)} ${coinTo} ($${toValueUSD.toFixed(2)} USD).
Percentage difference: ${percentDiffDisplay}%
-USD ${profitLabel}: ${profitUSD > 0 ? '' : '-'}$${profitUSD.toFixed(2)} USD
+${profitLabel}: ${profitUSD > 0 ? '' : '-'}$${profitUSD.toFixed(2)} USD
Calculation:
Percentage = ${(isSentOffers || isOwnOffer) ? "((To Amount in USD / From Amount in USD) - 1) * 100" :