aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/announcements/store.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/announcements/store.js')
-rw-r--r--src/features/announcements/store.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/features/announcements/store.js b/src/features/announcements/store.js
index b99309ca7..0bebf29fd 100644
--- a/src/features/announcements/store.js
+++ b/src/features/announcements/store.js
@@ -111,16 +111,11 @@ export class AnnouncementsStore extends FeatureStore {
111 // Check if there is an announcement and on't show announcements to new users 111 // Check if there is an announcement and on't show announcements to new users
112 if (!announcement || isNewUser) return; 112 if (!announcement || isNewUser) return;
113 113
114 this._showAnnouncement();
115
116 // Check if the user has already used current version (= has seen the announcement) 114 // Check if the user has already used current version (= has seen the announcement)
117 const { currentVersion, lastSeenAnnouncementVersion } = this; 115 const { currentVersion, lastSeenAnnouncementVersion } = this;
118 if (semver.gt(currentVersion, lastSeenAnnouncementVersion)) { 116 if (semver.gt(currentVersion, lastSeenAnnouncementVersion)) {
119 debug(`${currentVersion} < ${lastSeenAnnouncementVersion}: announcement is shown`); 117 debug(`${currentVersion} < ${lastSeenAnnouncementVersion}: announcement is shown`);
120 this._showAnnouncement(); 118 this._showAnnouncement();
121 } else {
122 debug(`${currentVersion} >= ${lastSeenAnnouncementVersion}: announcement is hidden`);
123 this._hideAnnouncement();
124 } 119 }
125 }; 120 };
126 121