Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
leomendoza123 committed Nov 23, 2023
1 parent 540b784 commit a1c876d
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 10 deletions.
6 changes: 0 additions & 6 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ export class AppComponent {
this.currentRouteIsHeadlessOnOauthPage = this.showHeadlessOnOauthPage(
platformInfo.currentRoute
)
console.log(
'currentRouteIsHeadlessOnOauthPage',
this.currentRouteIsHeadlessOnOauthPage
)
this.setPlatformClasses(platformInfo)
this.screenDirection = platformInfo.screenDirection
if (
Expand Down Expand Up @@ -116,8 +112,6 @@ export class AppComponent {
}
showHeadlessOnOauthPage(currentRoute: string): boolean {
if (currentRoute) {
console.log(currentRoute)

const value = HeadlessOnOauthRoutes.filter(
(url) => currentRoute.indexOf('/' + url) === 0
)
Expand Down
3 changes: 2 additions & 1 deletion src/app/guards/register-toggl.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ export class RegisterTogglGuard {
localStorage.removeItem('REGISTRATION_2_0')
}

console.log('writed!')
// PLEASE NOTE THE PURPOSE OF THIS GUARD IS TO SET THE 'REGISTRATION_2_0' togglz
// before the registration module is loaded.
// This is done by setting the localStorage item 'REGISTRATION_2_0'.

// DESPITE OF THIS BEEN A GUARD, IT DOES NOT PREVENT THE USER FROM ACCESSING THE REGISTRATION MODULE.
// IT JUST HELPS SETTING THE LOGIC TWO WHICH VERSION OF THE REGISTRATION MODULE SHOULD BE LOADED.

// PLEASE NOTE THAT HAVING TO WAIT FOR THE FLAG TO LOAD BEFORE LOADING THE REGISTRATION MODULE
// IS A TEMPORAL SOLUTION AND MAKES THE LOADING OF THE REGISTRATION MODULE SLOWER.
return true
})
)
Expand Down
1 change: 0 additions & 1 deletion src/app/register/components/step-a/step-a.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export class StepAComponent extends BaseStepDirective {
infoSiteBaseUrl = environment.INFO_SITE

goForward() {
console.log('goForward', this.formGroup.controls.personal)
this.formGroup.markAllAsTouched()
}

Expand Down
1 change: 0 additions & 1 deletion src/app/register2/components/BaseForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export abstract class BaseForm implements ControlValueAccessor, AsyncValidator {
}
registerOnChange(fn: any): void {
this.form.valueChanges.subscribe((value) => {
console.log('valueChanges', value)
fn(value)
})
}
Expand Down
1 change: 0 additions & 1 deletion src/app/register2/pages/register/register2.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ export class Register2Component implements OnInit, AfterViewInit {
// Fix to material vertical stepper not focusing current header
// related issue https://github.com/angular/components/issues/8881
focusCurrentStep(event: StepperSelectionEvent) {
console.log('event', event)
let nextStep: ElementRef
if (event.selectedIndex === 0) {
nextStep = this.stepComponentA
Expand Down

0 comments on commit a1c876d

Please sign in to comment.