Skip to content

Commit

Permalink
fixup! feat(suite): display multitoken value and adjust styles
Browse files Browse the repository at this point in the history
  • Loading branch information
enjojoy committed Dec 3, 2024
1 parent 1aab6cd commit 92860f0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/suite/src/components/suite/FormattedCryptoAmount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const FormattedCryptoAmount = ({
<Row width="100%" gap={spacings.xxs} className={className}>
<Row>
{!!signValue && <Sign value={signValue} />}
<Value data-testid={dataTest}>
<Value>
<RedactNumericalValue value={formattedValue} />
</Value>
</Row>
Expand All @@ -112,8 +112,12 @@ export const FormattedCryptoAmount = ({
);

if (disableHiddenPlaceholder) {
return content;
return <div data-testid={dataTest}>{content}</div>;
}

return <HiddenPlaceholder>{content}</HiddenPlaceholder>;
return (
<div data-testid={dataTest}>
<HiddenPlaceholder>{content}</HiddenPlaceholder>
</div>
);
};

0 comments on commit 92860f0

Please sign in to comment.