Skip to content

Commit

Permalink
use === to compare when 0/1
Browse files Browse the repository at this point in the history
  • Loading branch information
NetizenAbel authored and thamara committed Oct 31, 2019
1 parent 879b033 commit ff91d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async function checkForUpdates(showUpToDateDialog) {
};

dialog.showMessageBox(null, options, (response) => {
if (response == 1) {
if (response === 1) {
//Download latest version
shell.openExternal('https://github.com/thamara/time-to-leave/releases/latest');
} else if (response == 2) {
Expand Down Expand Up @@ -209,7 +209,7 @@ function createWindow () {
};

dialog.showMessageBox(null, options, (response) => {
if (response == 1) {
if (response === 1) {
store.clear();
waivedWorkdays.clear();
win.reload();
Expand Down

0 comments on commit ff91d54

Please sign in to comment.