diff options
author | 2019-04-16 09:37:32 +0200 | |
---|---|---|
committer | 2019-04-16 09:37:32 +0200 | |
commit | 510473abdaea9e2e2d6434e12ba8963e9ce2b83f (patch) | |
tree | 866de6a4c2760fe7fd5ecffa47463da276c23a78 /src/features | |
parent | Update strings (diff) | |
download | ferdium-app-510473abdaea9e2e2d6434e12ba8963e9ce2b83f.tar.gz ferdium-app-510473abdaea9e2e2d6434e12ba8963e9ce2b83f.tar.zst ferdium-app-510473abdaea9e2e2d6434e12ba8963e9ce2b83f.zip |
provide dummy version if lastSeenAnnouncementVersion is null
Diffstat (limited to 'src/features')
-rw-r--r-- | src/features/announcements/store.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/features/announcements/store.js b/src/features/announcements/store.js index 0bebf29fd..bb54abc46 100644 --- a/src/features/announcements/store.js +++ b/src/features/announcements/store.js | |||
@@ -113,7 +113,7 @@ export class AnnouncementsStore extends FeatureStore { | |||
113 | 113 | ||
114 | // 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) |
115 | const { currentVersion, lastSeenAnnouncementVersion } = this; | 115 | const { currentVersion, lastSeenAnnouncementVersion } = this; |
116 | if (semver.gt(currentVersion, lastSeenAnnouncementVersion)) { | 116 | if (semver.gt(currentVersion, lastSeenAnnouncementVersion || '0.0.0')) { |
117 | debug(`${currentVersion} < ${lastSeenAnnouncementVersion}: announcement is shown`); | 117 | debug(`${currentVersion} < ${lastSeenAnnouncementVersion}: announcement is shown`); |
118 | this._showAnnouncement(); | 118 | this._showAnnouncement(); |
119 | } | 119 | } |