diff options
author | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-31 17:28:20 -0400 |
---|---|---|
committer | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-31 17:28:20 -0400 |
commit | f7a0ce90b0ead17ad4002108d7e868899954c69d (patch) | |
tree | e3120d2726a4313327dbc7a1cd4c509f1a2afedd | |
parent | da47933078796ea1b7b7b20468d2c2fe19b2e74f (diff) | |
download | JellySolutions-f7a0ce90b0ead17ad4002108d7e868899954c69d.tar.gz JellySolutions-f7a0ce90b0ead17ad4002108d7e868899954c69d.tar.bz2 JellySolutions-f7a0ce90b0ead17ad4002108d7e868899954c69d.zip |
Removed login check for now
-rw-r--r-- | ufund-ui/src/app/components/funding-basket/funding-basket.component.ts | 11 |
1 files changed, 10 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 5c5776f..08515c2 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 (!localStorage.getItem("credential") && !this.authService.getCurrentUser()) { + if (!this.authService.getCurrentUser()) { this.router.navigate(['/login'], {queryParams: {redir: this.router.url}}); return; } @@ -45,6 +45,15 @@ export class FundingBasketComponent implements OnInit { contribution.setAttribute("style", "color: #ff0000"); } } + // if (this.usersService.getBasket().value != await firstValueFrom(this.usersService.getUser(1)) + // for (let c of this.usersService.getBasket().value) { + // if (c == null) { + // this.isValid = false; + // this.statusText.next("One or more needs have been deleted") + // } else { + // this.statusText.next("test") + // } + // } if (this.isValid) { for (let c of document.getElementById("funding-basket")?.querySelectorAll('.contribution')!) { let contribution = c as HTMLInputElement; |