NotificationBadgeWidget: Don't double-convert numbers

We shouldn't run numbers through convertNumber() twice.

Change-Id: If0ab0cad48761eaa1753f65e9d1557d84ec31961
This commit is contained in:
Roan Kattouw 2019-06-25 14:10:37 -07:00
parent 506aa9d425
commit d95b4bfaac

View file

@ -240,7 +240,6 @@
unreadCount = this.manager.getUnreadCounter().getCount();
cappedUnreadCount = this.manager.getUnreadCounter().getCappedNotificationCount( unreadCount );
cappedUnreadCount = mw.language.convertNumber( cappedUnreadCount );
badgeLabel = mw.message( 'echo-badge-count', mw.language.convertNumber( cappedUnreadCount ) ).text();
this.badgeButton.setLabel( badgeLabel );