Skip to content

Commit

Permalink
fix: add negative sign to amount
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhdaware committed Jul 19, 2024
1 parent fb58be1 commit a1d6a2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/blade/src/components/Amount/Amount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ const AmountValue = ({
fontFamily={numberFontFamily}
as={isReactNative ? undefined : 'span'}
>
{amount.minusSign}
{amount.integer}
</BaseText>
<BaseText
Expand All @@ -141,6 +142,7 @@ const AmountValue = ({
color={amountValueColor}
lineHeight={amountLineHeights[type][size]}
>
{amount.minusSign}
{amount.formatted}
</BaseText>
);
Expand Down Expand Up @@ -179,7 +181,7 @@ export const formatAmountWithSuffix = ({
maximumFractionDigits: 2,
minimumFractionDigits: 2,
},
};
} as const;
return {
...formatNumberByParts(value, options),
formatted: formatNumber(value, options),
Expand Down

0 comments on commit a1d6a2a

Please sign in to comment.