diff --git a/webapp/actions/notification_actions.jsx b/webapp/actions/notification_actions.jsx index c07dc0d566..33709458a5 100644 --- a/webapp/actions/notification_actions.jsx +++ b/webapp/actions/notification_actions.jsx @@ -87,7 +87,7 @@ export function sendDesktopNotification(post, msgProps) { image |= attachment.image_url.length > 0; }); - notifyText.replace(/\n+/g, ' '); + notifyText = notifyText.replace(/\n+/g, ' '); if (notifyText.length > 50) { notifyText = notifyText.substring(0, 49) + '...'; }