Skip to content

Commit

Permalink
Clean up formatting and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelg98 committed Sep 10, 2020
1 parent e6ee2d6 commit f2f303d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.d.ts
Expand Up @@ -25,7 +25,7 @@ export function formatCurrency(
noDecimal: boolean | decimalConfig
): string;

interface decimalConfig{
interface decimalConfig {
decimalPlaces?: number,
significantFigures?: number
}
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -72,7 +72,7 @@ export function isCrypto(isoCode) {
return isBTCETH(isoCode) || supportedCurrencySymbols[isoCode] == null;
}

// Function to transignificantFiguresorm the output from Intl.NumberFormat#format
// Function to transform the output from Intl.NumberFormat#format
function formatCurrencyOverride(formattedCurrency, locale = "en") {
// If currency code remains in front
const currencyCodeFrontMatch = formattedCurrency.match(/^[A-Z]{3}\s?/);
Expand Down

0 comments on commit f2f303d

Please sign in to comment.