Fixed unvoted text for notification screen

This commit is contained in:
Mustafa Buyukcelebi 2019-10-14 18:43:08 +03:00
parent 9e4c032eb0
commit 80c12842eb

View File

@ -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;
}