Skip to content

Commit

Permalink
fix typo signular -> singular (#1623)
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl authored Nov 20, 2024
1 parent 09bacdc commit d238eaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export const msatsToSatsDecimal = msats => {
return fixedDecimal(Number(msats) / 1000.0, 3)
}

export const formatSats = (sats) => numWithUnits(sats, { unitSignular: 'sat', unitPlural: 'sats', abbreviate: false })
export const formatMsats = (msats) => numWithUnits(msats, { unitSignular: 'msat', unitPlural: 'msats', abbreviate: false })
export const formatSats = (sats) => numWithUnits(sats, { unitSingular: 'sat', unitPlural: 'sats', abbreviate: false })
export const formatMsats = (msats) => numWithUnits(msats, { unitSingular: 'msat', unitPlural: 'msats', abbreviate: false })

export const hexToB64 = hexstring => {
return btoa(hexstring.match(/\w{2}/g).map(function (a) {
Expand Down

0 comments on commit d238eaf

Please sign in to comment.