Skip to content

Commit

Permalink
chore: remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
illfixit committed Nov 26, 2024
1 parent 20f77b9 commit bf3cb1e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion authority-portal-frontend/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ const REDIRECT_TO_HOME: string[] = [
];

const getProperRedirectUrl = (fallbackUrl: string) => {
console.log('app-routing module: getProperRedirectUrl');
const url = localStorage.getItem('originalUrl') || fallbackUrl;
localStorage.removeItem('originalUrl');
return url;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ export class GlobalStateImpl implements NgxsOnInit {
newUserInfo: Fetched<UserInfo>,
) {
patchState(ctx, (state) => {
console.log(
'global-state-impl.ts: onUserInfoRefreshed -> patchState',
newUserInfo,
);
let userInfo = state.userInfo.mergeIfReady(newUserInfo);

// Update Routes in when user status has changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export class RouteConfigService {
) {}

decidePageSet(userInfoFetched: Fetched<UserInfo>): AuthorityPortalPageSet {
console.log('RouteConfigService: decidePageSet');
if (!userInfoFetched.isReady) {
return 'LOADING';
}
Expand All @@ -78,7 +77,6 @@ export class RouteConfigService {
previousPageSet: AuthorityPortalPageSet,
nextPageSet: AuthorityPortalPageSet,
) {
console.log('RouteConfigService: switchRouteConfig');
if (previousPageSet == nextPageSet) {
return;
}
Expand Down Expand Up @@ -119,7 +117,6 @@ export class RouteConfigService {
}

forceRefreshCurrentRoute() {
console.log('RouteConfigService: forceRefreshCurrentRoute');
const currentUrl = this.router.url;
this.router
.navigateByUrl('/random-redirect-for-force-refresh', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,11 @@ export class UrlBeforeLoginService {
}

public clearOriginalUrl(): void {
console.log('UrlBeforeLoginService: clearOriginalUrl');
this.originalUrl = '';
localStorage.removeItem('originalUrl');
}

public goToOriginalUrl(): void {
console.log('UrlBeforeLoginService: goToOriginalUrl');
if (this.originalUrl) {
this.router.navigateByUrl(this.originalUrl);
this.clearOriginalUrl();
Expand Down

0 comments on commit bf3cb1e

Please sign in to comment.