if not selected data drive

This commit is contained in:
Drew Ansbacher
2021-06-29 17:39:44 -06:00
committed by Aiden McClelland
parent 834abdc330
commit d2e95c71ba

View File

@@ -25,7 +25,9 @@ export class AppComponent {
async ngOnInit() {
await this.stateService.getState()
if(this.stateService.hasPassword) {
if (!this.stateService.selectedDataDrive) {
await this.navCtrl.navigateForward(`/wizard`)
} else if(this.stateService.hasPassword) {
//redirect to embassyOS
} else if (this.stateService.recoveryDrive) {
await this.navCtrl.navigateForward(`/recover`)