Merge pull request #1218 from esteemapp/bugfix/notification-unvote-text

Fixed unvoted text for notification screen
This commit is contained in:
uğur erdal 2019-10-14 22:00:28 +03:00 committed by GitHub
commit 76e9df8e6b

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