Skip to content

Commit

Permalink
Skip storing shownChangelogVer conf if not shown for user
Browse files Browse the repository at this point in the history
  • Loading branch information
ZIMkaRU committed Apr 29, 2024
1 parent abc7843 commit 254fc77
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/changelog-manager/manage-changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,21 @@ module.exports = async () => {
return
}

const isShown = await showChangelog({ version })
const {
error,
isShown
} = await showChangelog({ version })

if (!isShown) {
return
}

const isSaved = await configsKeeper
.saveConfigs({ shownChangelogVer: version })

if (
isSaved &&
isShown
!error
) {
return
}
Expand Down

0 comments on commit 254fc77

Please sign in to comment.