From 1e14ab0c5a1821931560f13759d4a7911a3c63d3 Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Tue, 26 Jul 2022 11:26:42 -0500 Subject: [PATCH] Fix order list redirection --- src/app/app.component.ts | 6 +----- src/app/business/business.component.ts | 1 + src/app/viewer/viewer.component.ts | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 4c00724..848eb95 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -8,10 +8,6 @@ import { Component } from '@angular/core'; }) export class AppComponent { - //StoredPosts: Post[] = []; - title = 'sell4zec'; + title = 'ZGo'; - //onPostAdded(post: Post){ - //this.StoredPosts.push(post); - //} } diff --git a/src/app/business/business.component.ts b/src/app/business/business.component.ts index 24ea02c..1fb1379 100644 --- a/src/app/business/business.component.ts +++ b/src/app/business/business.component.ts @@ -206,6 +206,7 @@ export class BusinessComponent implements OnInit { this.userService.findUser(); this.ownerUpdate.subscribe((owner) => { if(owner.paid) { + clearInterval(this.intervalHolder); this.router.navigate(['/shop']); } }); diff --git a/src/app/viewer/viewer.component.ts b/src/app/viewer/viewer.component.ts index 84c7675..ba3e9af 100644 --- a/src/app/viewer/viewer.component.ts +++ b/src/app/viewer/viewer.component.ts @@ -18,7 +18,7 @@ import {User} from '../user.model'; }) export class ViewerComponent implements OnInit { - intervalHolder: any; + //intervalHolder: any; public message: string = "Welcome to the inside!"; public user: User = { address: '', @@ -131,7 +131,7 @@ export class ViewerComponent implements OnInit { this.owner = owner; this.userUpdate.subscribe((user) => { this.user = user; - console.log('Viewer loginCheck', this.user); + //console.log('Viewer loginCheck', this.user); if (!this.owner.paid || !this.user.validated) { console.log('Log in expired!'); this.router.navigate(['/login']);