From cd2e4248b5e86a22898faf28221f5ac0463a580c Mon Sep 17 00:00:00 2001 From: Chris Veilleux Date: Mon, 21 Nov 2022 16:22:33 -0600 Subject: [PATCH] bugfix for adding first device to a new account --- .../src/app/modules/device/pages/add/add.component.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/projects/account/src/app/modules/device/pages/add/add.component.ts b/projects/account/src/app/modules/device/pages/add/add.component.ts index 6f37afa..68b4a5a 100644 --- a/projects/account/src/app/modules/device/pages/add/add.component.ts +++ b/projects/account/src/app/modules/device/pages/add/add.component.ts @@ -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() {