!wip fixed it always saying there is an update #1513

pull/1520/head
Jamie.Rees 7 years ago
parent f9a267ac59
commit 5f978abf86

@ -29,9 +29,11 @@ export class UpdateComponent implements OnInit {
public checkForUpdate() { public checkForUpdate() {
this.updateService.checkForNewUpdate().subscribe(x => { this.updateService.checkForNewUpdate().subscribe(x => {
if (x) { if (x === true) {
this.updateAvailable = true; this.updateAvailable = true;
this.notificationService.success("Update", "There is a new update available"); this.notificationService.success("Update", "There is a new update available");
} else {
this.notificationService.success("Update", "You are on the latest version!")
} }
}); });
} }

Loading…
Cancel
Save