Skip to content

Commit

Permalink
Merge branch '416-resolve-the-issue-related-to-displaying-the-amount-…
Browse files Browse the repository at this point in the history
…in-the-bridge-form-within-the-rosen-app' into 'dev'

Resolve "Resolve the issue related to displaying the amount in the Bridge form within the Rosen App"

Closes #416

See merge request ergo/rosen-bridge/ui!343
  • Loading branch information
vorujack committed Nov 9, 2024
2 parents e830fc8 + 05ad49e commit 144206e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-rules-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rosen-bridge/ui-kit': patch
---

Address the issue concerning the display of values in the Amount component
4 changes: 2 additions & 2 deletions packages/ui-kit/src/components/common/Amount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ export const Amount = ({
color="text.primary"
variant={size == 'normal' ? 'body1' : 'h2'}
>
{+number ? number.replace(/\B(?=(\d{3})+(?!\d))/g, ',') : '-'}
{+value ? number.replace(/\B(?=(\d{3})+(?!\d))/g, ',') : '-'}
</Typography>
{!!+number && (
{!!+value && (
<>
{!!decimals && (
<Typography
Expand Down

0 comments on commit 144206e

Please sign in to comment.