Skip to content

Commit 1f81576

Browse files
committed
fix: loading less than
1 parent cb69550 commit 1f81576

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/extension/src/ui/action/utils/filters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const parseCurrency = (value: string | number): string => {
3030
const amount = new BigNumber(raw);
3131
const finalValue = amount.isNaN() || amount.isZero() ? 0 : amount.times(exchangeRate).toNumber();
3232
const notation = BigNumber(finalValue).gt(999999) ? 'compact' : 'standard';
33-
return `${amount.lt(0.0000001) ? '< ' : ''}${new Intl.NumberFormat(locale, { style: 'currency', currency: currency, notation, }).format(finalValue)}`
33+
return `${amount.lt(0.0000001) && amount.gt(0) ? '< ' : ''}${new Intl.NumberFormat(locale, { style: 'currency', currency: currency, notation, }).format(finalValue)}`
3434
};
3535

3636
export const truncate = (value: string, length: number): string => {

0 commit comments

Comments
 (0)