Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Commit

Permalink
fixed setting upToDate not working
Browse files Browse the repository at this point in the history
  • Loading branch information
tahnik committed Oct 8, 2017
1 parent 9249e37 commit ac89c41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/js/actions/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const setUpdateStatus = value => (dispatch) => {
} else {
dispatch({
type: SETTINGS.ACTION.CHANGE_GENERAL,
primaryKey: '',
primaryKey: 'update',
buttonText: 'Up to date',
value: false,
});
Expand Down
5 changes: 4 additions & 1 deletion app/src/js/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ if (plat !== 'windows') {
if (!releaseInfo.draft) {
store.dispatch(setUpdateStatus(true));
}
} else if (cmp(latestRelease, currentVersion) === 0) {
} else if (
cmp(latestRelease, currentVersion) === 0
|| cmp(latestRelease, currentVersion) === -1
) {
if (!releaseInfo.draft) {
store.dispatch(setUpdateStatus(false));
}
Expand Down

0 comments on commit ac89c41

Please sign in to comment.