diff --git a/.bitmap b/.bitmap index 8927194..c599f47 100644 --- a/.bitmap +++ b/.bitmap @@ -33,7 +33,7 @@ "utils/format-price": { "name": "utils/format-price", "scope": "bitdev.git-sync-demo", - "version": "0.0.2", + "version": "89227d196122fbfdabac92b14d4d3e762b5b41a3", "mainFile": "index.ts", "rootDir": "components/utils/format-price" }, diff --git a/components/utils/format-price/format-price.ts b/components/utils/format-price/format-price.ts index 36ad825..d795655 100644 --- a/components/utils/format-price/format-price.ts +++ b/components/utils/format-price/format-price.ts @@ -1,5 +1,5 @@ /** - * Formats an amount of money for display. + * Formats an amount of money for display. Rejects NaN and infinities. * Example: formatPrice(1999.5) returns "$1,999.50". * The currency and the locale are optional. The default is US dollars in * the en-US locale.