Skip to content

Commit 382b229

Browse files
committed
frontend: do not show skeleton when conversion is missing.
1 parent 5f63237 commit 382b229

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

frontends/web/src/components/amount/conversion-amount.tsx

+2-7
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { Arrow } from '@/components/transactions/components/arrows';
2121
import { Amount } from '@/components/amount/amount';
2222
import { getTxSign } from '@/utils/transaction';
2323
import styles from './conversion-amount.module.css';
24-
import { Skeleton } from '@/components/skeleton/skeleton';
2524

2625
type TConversionAmountProps = {
2726
amount: IAmount;
@@ -70,12 +69,8 @@ export const ConversionAmount = ({
7069
unit={conversionUnit}
7170
/>
7271
</>
73-
) : (
74-
<div className={styles.skeletonContainer}>
75-
<Skeleton />
76-
</div>
77-
)}
78-
<span className={styles.txUnit}>{' '}{conversionUnit}</span>
72+
) : null }
73+
{ (conversion || sendToSelf) ? <span className={styles.txUnit}>{' '}{conversionUnit}</span> : null }
7974
</span>
8075
);
8176
};

0 commit comments

Comments
 (0)