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}`