Round sats in FORWARDEDTIP push notification (#1086)
This commit is contained in:
		
							parent
							
								
									f9a99a7deb
								
							
						
					
					
						commit
						59b3d1c375
					
				@ -236,7 +236,7 @@ export const notifyZapped = async ({ models, id }) => {
 | 
			
		||||
    // send push notifications to forwarded recipients
 | 
			
		||||
    if (mappedForwards.length) {
 | 
			
		||||
      await Promise.allSettled(mappedForwards.map(forward => sendUserNotification(forward.user.id, {
 | 
			
		||||
        title: `you were forwarded ${numWithUnits(msatsToSats(updatedItem.msats) * forward.pct / 100)}`,
 | 
			
		||||
        title: `you were forwarded ${numWithUnits(Math.round(msatsToSats(updatedItem.msats) * forward.pct / 100))}`,
 | 
			
		||||
        body: updatedItem.title ?? updatedItem.text,
 | 
			
		||||
        item: updatedItem,
 | 
			
		||||
        tag: `FORWARDEDTIP-${updatedItem.id}`
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user