Skip to content

Commit

Permalink
Merge branch 'frontend-hide-estimate'
Browse files Browse the repository at this point in the history
  • Loading branch information
thisconnect committed Jan 14, 2025
2 parents af9ebd4 + 090038f commit 72bb074
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontends/web/src/components/transactions/transaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ const Amounts = ({
const conversionPrefix = amount.estimated ? '\u2248' : null; // ≈
const sendToSelf = type === 'send_to_self';
const conversionUnit = sendToSelf ? amount.unit : defaultCurrency;
const conversionIsFiat = conversionUnit !== 'BTC' && conversionUnit !== 'sat';

return (
<span className={`${styles.txAmountsColumn} ${styles[txTypeClass]}`}>
Expand All @@ -189,7 +190,7 @@ const Amounts = ({
<Arrow type="send_to_self" />
</span>
)}
{(conversionPrefix && !sendToSelf) && (
{(conversionPrefix && !sendToSelf && conversionIsFiat) && (
<span className={styles.txPrefix}>
{conversionPrefix}
{' '}
Expand Down

0 comments on commit 72bb074

Please sign in to comment.