Skip to content

Commit

Permalink
Merge pull request #34 from coingecko/0.4.2
Browse files Browse the repository at this point in the history
0.4.2
  • Loading branch information
superoo7 committed Sep 21, 2020
2 parents 4013bf7 + c329aa3 commit 6901db3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/cryptoformat.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ function formatCurrency(
initializeFormatters(isoCode, locale);
}

if (noDecimal === true && amount > 1.0) {
if (noDecimal === true && amount > 100.0) {
return formatCurrencyOverride(
currencyFormatterNoDecimal.format(amount),
locale
Expand Down
2 changes: 1 addition & 1 deletion lib/cryptoformat.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ function formatCurrency(
initializeFormatters(isoCode, locale);
}

if (noDecimal === true && amount > 1.0) {
if (noDecimal === true && amount > 100.0) {
return formatCurrencyOverride(
currencyFormatterNoDecimal.format(amount),
locale
Expand Down
2 changes: 1 addition & 1 deletion lib/cryptoformat.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
initializeFormatters(isoCode, locale);
}

if (noDecimal === true && amount > 1.0) {
if (noDecimal === true && amount > 100.0) {
return formatCurrencyOverride(
currencyFormatterNoDecimal.format(amount),
locale
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coingecko/cryptoformat",
"version": "0.4.1",
"version": "0.4.2",
"description": "Javascript library to format and display cryptocurrencies and fiat",
"main": "lib/cryptoformat.cjs.js",
"module": "lib/cryptoformat.esm.js",
Expand Down

0 comments on commit 6901db3

Please sign in to comment.