From a1d6a2a191963c46c13b7783686123e71a08b8c7 Mon Sep 17 00:00:00 2001 From: saurabhdaware Date: Fri, 19 Jul 2024 16:29:09 +0530 Subject: [PATCH] fix: add negative sign to amount --- packages/blade/src/components/Amount/Amount.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/blade/src/components/Amount/Amount.tsx b/packages/blade/src/components/Amount/Amount.tsx index 33e550eb29f..3f11781e291 100644 --- a/packages/blade/src/components/Amount/Amount.tsx +++ b/packages/blade/src/components/Amount/Amount.tsx @@ -116,6 +116,7 @@ const AmountValue = ({ fontFamily={numberFontFamily} as={isReactNative ? undefined : 'span'} > + {amount.minusSign} {amount.integer} + {amount.minusSign} {amount.formatted} ); @@ -179,7 +181,7 @@ export const formatAmountWithSuffix = ({ maximumFractionDigits: 2, minimumFractionDigits: 2, }, - }; + } as const; return { ...formatNumberByParts(value, options), formatted: formatNumber(value, options),