Skip to content

Commit

Permalink
update AmountPill to use getIntlLocale
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrans committed Apr 17, 2024
1 parent 16fee5f commit ee0d144
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jest.mock('react-redux', () => ({
}));

jest.mock('../../../../ducks/locale/locale', () => ({
getCurrentLocale: jest.fn(() => 'en-US'),
getIntlLocale: jest.fn(() => 'en-US'),
}));

jest.mock('../../../../components/ui/tooltip', () => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import { hexToDecimal } from '../../../../../shared/modules/conversion.utils';
import { TokenStandard } from '../../../../../shared/constants/transaction';
import Tooltip from '../../../../components/ui/tooltip';
import { getCurrentLocale } from '../../../../ducks/locale/locale';
import { getIntlLocale } from '../../../../ducks/locale/locale';
import { AssetIdentifier } from './types';
import { formatAmount, formatAmountMaxPrecision } from './formatAmount';

Expand All @@ -30,7 +30,7 @@ export const AmountPill: React.FC<{
asset: AssetIdentifier;
amount: BigNumber;
}> = ({ asset, amount }) => {
const locale = useSelector(getCurrentLocale);
const locale = useSelector(getIntlLocale);

const backgroundColor = amount.isNegative()
? BackgroundColor.errorMuted
Expand Down

0 comments on commit ee0d144

Please sign in to comment.