diff --git a/app/assets/javascripts/discourse/views/buttons/notifications_button.js b/app/assets/javascripts/discourse/views/buttons/notifications_button.js
index bf48e0b1565..f54f447d39b 100644
--- a/app/assets/javascripts/discourse/views/buttons/notifications_button.js
+++ b/app/assets/javascripts/discourse/views/buttons/notifications_button.js
@@ -21,11 +21,11 @@ Discourse.NotificationsButton = Discourse.DropdownButtonView.extend({
text: function() {
var key = (function() {
- switch (this.get('topic.details.notification_level') || 1) {
+ switch (this.get('topic.details.notification_level')) {
case Discourse.Topic.NotificationLevel.WATCHING: return 'watching';
case Discourse.Topic.NotificationLevel.TRACKING: return 'tracking';
- case Discourse.Topic.NotificationLevel.REGULAR: return 'regular';
case Discourse.Topic.NotificationLevel.MUTE: return 'muted';
+ default: return 'regular';
}
}).call(this);
@@ -33,8 +33,8 @@ Discourse.NotificationsButton = Discourse.DropdownButtonView.extend({
switch (key) {
case 'watching': return ' ';
case 'tracking': return ' ';
- case 'regular': return '';
case 'muted': return ' ';
+ default: return '';
}
})();
return icon + (I18n.t("topic.notifications." + key + ".title")) + "";