From 80c12842eb96d49f4693843987deaa288fa4d87e Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Mon, 14 Oct 2019 18:43:08 +0300 Subject: [PATCH] Fixed unvoted text for notification screen --- src/components/notificationLine/view/notificationLineView.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/notificationLine/view/notificationLineView.js b/src/components/notificationLine/view/notificationLineView.js index 956549922..5ad208909 100644 --- a/src/components/notificationLine/view/notificationLineView.js +++ b/src/components/notificationLine/view/notificationLineView.js @@ -54,6 +54,11 @@ class NotificationLineView extends PureComponent { if (notification.weight) { const _percent = `${parseFloat((notification.weight / 100).toFixed(2))}% `; + if (notification.weight < 0) { + _title = formatMessage({ + id: 'notification.unvote', + }); + } _title = _percent + _title; }