wiz guid fix

This commit is contained in:
Drew Ansbacher
2021-11-09 12:30:55 -07:00
committed by Aiden McClelland
parent d4297b16d2
commit 6eb2dfbb5e
2 changed files with 4 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ export class EmbassyPage {
}
async chooseDrive (drive: DiskInfo) {
if (!!drive.partitions.find(p => p.used)) {
if (!!drive.partitions.find(p => p.used) || !!drive.guid) {
const alert = await this.alertCtrl.create({
header: 'Warning',
subHeader: 'Drive contains data!',

View File

@@ -43,9 +43,10 @@ export class RecoverPage {
async getDrives () {
try {
this.drives = (await this.apiService.getDrives()).filter(d => d.partitions.length)
const drives = (await this.apiService.getDrives()).filter(d => d.partitions.length)
this.drives = drives.filter(d => d.partitions.length)
const importableDrive = this.drives.find(d => !!d.guid)
const importableDrive = drives.find(d => !!d.guid)
if (!!importableDrive && !this.hasShownGuidAlert) {
const alert = await this.alertCtrl.create({
header: 'Embassy Drive Detected',