From d238eafdde10e9857df3a8c9a5e62bf50fc64f3e Mon Sep 17 00:00:00 2001 From: Riccardo Balbo Date: Wed, 20 Nov 2024 23:26:18 +0100 Subject: [PATCH] fix typo signular -> singular (#1623) --- lib/format.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/format.js b/lib/format.js index ba1de3a1d..691db1c22 100644 --- a/lib/format.js +++ b/lib/format.js @@ -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) {