Skip to content

Commit

Permalink
fix: auto update check notify even if there is no update
Browse files Browse the repository at this point in the history
  • Loading branch information
homocodian committed Sep 2, 2023
1 parent 32c4d3b commit 16353c9
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/components/general/CheckForUpdates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,20 @@ function CheckForUpdates() {
message: `New update available ${data.data.html_url}`,
type: "info",
});
} else {
setAlert({
open: true,
message: `There are currently no new updates available.`,
type: "info",
});
}
// else {
// setAlert({
// open: true,
// message: `There are currently no new updates available.`,
// type: "info",
// });
// }
} catch (error) {
setAlert({
open: true,
message: "Failed to check for update.",
type: "error",
});
// setAlert({
// open: true,
// message: "Failed to check for update.",
// type: "error",
// });
}
}, []);

Expand Down

0 comments on commit 16353c9

Please sign in to comment.