diff options
author | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-31 15:09:23 -0400 |
---|---|---|
committer | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-31 15:09:23 -0400 |
commit | 9f31fea81818dae21f67b23a6004a3ca369f8e0d (patch) | |
tree | 5e052c399cc102af804d86de8695434b8f5ab7f0 /ufund-ui/src/app/components/funding-basket | |
parent | 2031579ce6033fbe67a78b66d3da2ee6872748de (diff) | |
download | JellySolutions-9f31fea81818dae21f67b23a6004a3ca369f8e0d.tar.gz JellySolutions-9f31fea81818dae21f67b23a6004a3ca369f8e0d.tar.bz2 JellySolutions-9f31fea81818dae21f67b23a6004a3ca369f8e0d.zip |
Added check to prevent redirect to login page
Diffstat (limited to 'ufund-ui/src/app/components/funding-basket')
-rw-r--r-- | ufund-ui/src/app/components/funding-basket/funding-basket.component.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts b/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts index faa7e0b..5c5776f 100644 --- a/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts +++ b/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts @@ -26,7 +26,7 @@ export class FundingBasketComponent implements OnInit { // this is for login rerouting ngOnInit(): void { - if (!this.authService.getCurrentUser()) { + if (!localStorage.getItem("credential") && !this.authService.getCurrentUser()) { this.router.navigate(['/login'], {queryParams: {redir: this.router.url}}); return; } |