bugfix for adding first device to a new account

master
Chris Veilleux 2022-11-21 16:22:33 -06:00
parent 61a854d785
commit cd2e4248b5
1 changed files with 9 additions and 0 deletions

View File

@ -173,6 +173,15 @@ export class AddComponent implements OnInit {
voice: this.defaultsForm.controls['voice'].value
}
);
// Hack to get around not allowing a user to select a wake word or voice.
// If this functionality is restored, this code should be removed.
if (!this.deviceForm.controls['wakeWord'].value) {
this.deviceForm.controls['wakeWord'].setValue('Hey Mycroft');
}
if (!this.deviceForm.controls['voice'].value) {
this.deviceForm.controls['voice'].setValue('American Male');
}
}
onFinished() {