fix(dashboard): format currency sign (#8936)
**What** - change `formatCurrency` admin util to show sign only for negative numbers --- FIXES CC-335
This commit is contained in:
@@ -2,6 +2,6 @@ export const formatCurrency = (amount: number, currency: string) => {
|
||||
return new Intl.NumberFormat("en-US", {
|
||||
style: "currency",
|
||||
currency,
|
||||
signDisplay: "always",
|
||||
signDisplay: "auto",
|
||||
}).format(amount)
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ const Refund = ({
|
||||
|
||||
const RefundNoteIndicator = refund.note && (
|
||||
<Tooltip content={refund.note}>
|
||||
<DocumentText className="text-ui-tag-neutral-icon inline ml-1" />
|
||||
<DocumentText className="text-ui-tag-neutral-icon ml-1 inline" />
|
||||
</Tooltip>
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user