Skip to content

Commit

Permalink
Fixed version check
Browse files Browse the repository at this point in the history
  • Loading branch information
pkrll committed Jul 3, 2018
1 parent fff5df2 commit 188066b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raspbot/application/models/Raspbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports.checkForUpdate = () => {
const compare = require('compare-versions');
let response = { heading: '', version: version, isNewer: false, changes: '' }

if (compare(json.version, version) < 1) {
if (compare(json.version, version) > 0) {
response.version = json.version;
response.isNewer = true;
response.changes = json.changes;
Expand Down

0 comments on commit 188066b

Please sign in to comment.