From 040fc22e698603c64dca30052066e2302dca434a Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Mon, 8 May 2023 12:02:31 -0500 Subject: [PATCH] Enhance auth-guard service for new API --- src/app/auth-guard.service.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/auth-guard.service.ts b/src/app/auth-guard.service.ts index c1bf887..8fce64c 100644 --- a/src/app/auth-guard.service.ts +++ b/src/app/auth-guard.service.ts @@ -3,12 +3,10 @@ import { CanActivate, Router, RouterStateSnapshot, ActivatedRouteSnapshot } from import {HttpClient, HttpParams} from '@angular/common/http'; import { UserService } from './user.service'; import { Subscription, Observable } from 'rxjs'; -import { Owner } from './owner.model'; @Injectable() export class AuthGuardService implements CanActivate { - private UserSub: Subscription = new Subscription(); private addr = ''; private paid = false; private paidUpdate: Observable; @@ -32,7 +30,7 @@ export class AuthGuardService implements CanActivate { this.userService.uZaddrUpdate. subscribe((addr) => { if (addr != null) { - console.log(addr); + //console.log(addr); this.addr = addr; } else { console.log("No record for that token");