Skip to content

Commit 8664a07

Browse files
committed
Merge branch 'frontend-fix-sendtoself-tx-regression'
2 parents c52fe0e + 275eda6 commit 8664a07

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

frontends/web/src/components/transactions/transaction.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,18 +161,17 @@ const Amounts = ({
161161
}: TAmountsProps) => {
162162
const txTypeClass = `txAmount-${type}`;
163163
const recv = type === 'receive';
164-
const displayAmount = recv ? amount.amount : deductedAmount.amount;
165-
const sign = displayAmount ? getTxSign(type) : '';
164+
const displayAmount = recv ? amount : deductedAmount;
166165

167166
return (
168167
<span className={`
169168
${styles.txAmountsColumn || ''}
170169
${styles[txTypeClass] || ''}
171170
`}>
172171
<span className={styles.txAmount}>
173-
{sign}
172+
{getTxSign(type)}
174173
<AmountWithUnit
175-
amount={amount}
174+
amount={displayAmount}
176175
unitClassName={styles.txUnit}
177176
/>
178177
</span>

0 commit comments

Comments
 (0)