]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Remove invalid console logs
authorChocobozzz <me@florianbigard.com>
Thu, 25 May 2023 06:45:37 +0000 (08:45 +0200)
committerChocobozzz <me@florianbigard.com>
Thu, 25 May 2023 06:45:37 +0000 (08:45 +0200)
client/src/app/+my-account/my-account-settings/my-account-email-preferences/my-account-email-preferences.component.ts
client/src/app/shared/shared-forms/input-switch.component.ts

index 7fd59d7c8c395e3018b5965dbe54268b463bb53c..381d18922c557c112bdbfae5f19a71ccb69206a9 100644 (file)
@@ -45,7 +45,7 @@ export class MyAccountEmailPreferencesComponent extends FormReactive implements
           this.user.emailPublic = details.emailPublic
         },
 
-        error: err => console.log(err.message)
+        error: err => this.notifier.error(err.message)
       })
   }
 }
index f340ce81e85e6e3aeb606bc15436edf78498662b..abb96de6244cf3bfa64c02023610b4cb97e10882 100644 (file)
@@ -20,7 +20,6 @@ export class InputSwitchComponent implements ControlValueAccessor {
   propagateChange = (_: any) => { /* empty */ }
 
   writeValue (checked: boolean) {
-    console.log(checked)
     this.checked = checked
   }
 
@@ -33,7 +32,6 @@ export class InputSwitchComponent implements ControlValueAccessor {
   }
 
   update () {
-    console.log(this.checked)
     this.checked = !this.checked
     this.propagateChange(this.checked)
   }