Compare commits

..

2 Commits

Author SHA1 Message Date
ekzyis 7448cef932
Fix wallet status ignoring failed requests to create invoices (#1624) 2024-11-20 16:26:50 -06:00
Riccardo Balbo d238eafdde
fix typo signular -> singular (#1623) 2024-11-20 16:26:18 -06:00
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -73,7 +73,7 @@ export async function createInvoice (userId, { msats, description, descriptionHa
return { invoice, wallet, logger }
} catch (err) {
logger.error(err.message)
logger.error(err.message, { status: true })
}
}