diff --git a/src/app/settings/settings.component.ts b/src/app/settings/settings.component.ts index c24a2e6..084129f 100644 --- a/src/app/settings/settings.component.ts +++ b/src/app/settings/settings.component.ts @@ -70,14 +70,8 @@ export class SettingsComponent implements OnInit { this.owner.name = this.settingsForm.value.name; this.owner.currency = this.settingsForm.value.currency; this.owner.zats = this.settingsForm.value.useZats; - - this.owner.payconf = this.useVKey; - if ( this.useVKey ) { - this.owner.viewkey = this.settingsForm.value.VKey; - console.log(this.owner.viewkey); - } - else - this.owner.viewkey = ''; + this.owner.payconf = this.settingsForm.value.useVKey; + this.owner.viewkey = this.settingsForm.value.vKey; this.dialogRef.close(this.owner); }