Skip to content

Commit ec60bad

Browse files
committed
frontend: do not show skeleton when conversion is missing.
The skeleton is meant to represent that we are waiting for a backend response. In this case the conversion is not available becase the data is missing.
1 parent efc5c2d commit ec60bad

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

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

Lines changed: 5 additions & 7 deletions
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;
@@ -69,13 +68,12 @@ export const ConversionAmount = ({
6968
amount={sendToSelf ? amountToShow.amount : conversion || ''}
7069
unit={conversionUnit}
7170
/>
71+
<span className={styles.txUnit}>
72+
{' '}
73+
{conversionUnit}
74+
</span>
7275
</>
73-
) : (
74-
<div className={styles.skeletonContainer}>
75-
<Skeleton />
76-
</div>
77-
)}
78-
<span className={styles.txUnit}>{' '}{conversionUnit}</span>
76+
) : null }
7977
</span>
8078
);
8179
};

0 commit comments

Comments
 (0)