Skip to content

Commit d41de3b

Browse files
committed
frontend: remove skeleton for tx with missing conversion.
1 parent c2fb8c9 commit d41de3b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

+2-6
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,9 @@ export const ConversionAmount = ({
7069
unit={conversionUnit}
7170
/>
7271
</>
73-
) : (
74-
<div className={styles.skeletonContainer}>
75-
<Skeleton />
76-
</div>
72+
) : (<div></div>
7773
)}
78-
<span className={styles.txUnit}>{' '}{conversionUnit}</span>
74+
{ (conversion || sendToSelf) ? <span className={styles.txUnit}>{' '}{conversionUnit}</span> : null }
7975
</span>
8076
);
8177
};

0 commit comments

Comments
 (0)