Compare commits
	
		
			No commits in common. "7448cef9325387872147e10d5e7f7830f8d382af" and "09bacdc0166ec9d37922a3d4c8d22fb1ae0c32db" have entirely different histories.
		
	
	
		
			7448cef932
			...
			09bacdc016
		
	
		
| @ -72,8 +72,8 @@ export const msatsToSatsDecimal = msats => { | |||||||
|   return fixedDecimal(Number(msats) / 1000.0, 3) |   return fixedDecimal(Number(msats) / 1000.0, 3) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| export const formatSats = (sats) => numWithUnits(sats, { unitSingular: 'sat', unitPlural: 'sats', abbreviate: false }) | export const formatSats = (sats) => numWithUnits(sats, { unitSignular: 'sat', unitPlural: 'sats', abbreviate: false }) | ||||||
| export const formatMsats = (msats) => numWithUnits(msats, { unitSingular: 'msat', unitPlural: 'msats', abbreviate: false }) | export const formatMsats = (msats) => numWithUnits(msats, { unitSignular: 'msat', unitPlural: 'msats', abbreviate: false }) | ||||||
| 
 | 
 | ||||||
| export const hexToB64 = hexstring => { | export const hexToB64 = hexstring => { | ||||||
|   return btoa(hexstring.match(/\w{2}/g).map(function (a) { |   return btoa(hexstring.match(/\w{2}/g).map(function (a) { | ||||||
|  | |||||||
| @ -73,7 +73,7 @@ export async function createInvoice (userId, { msats, description, descriptionHa | |||||||
| 
 | 
 | ||||||
|       return { invoice, wallet, logger } |       return { invoice, wallet, logger } | ||||||
|     } catch (err) { |     } catch (err) { | ||||||
|       logger.error(err.message, { status: true }) |       logger.error(err.message) | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user