From 59b3d1c37558985acde526f0ec0ef6dddd266829 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Wed, 17 Apr 2024 21:24:07 +0200 Subject: [PATCH] Round sats in FORWARDEDTIP push notification (#1086) --- lib/webPush.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/webPush.js b/lib/webPush.js index 3140ac0c..860b099c 100644 --- a/lib/webPush.js +++ b/lib/webPush.js @@ -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}`