diff options
Diffstat (limited to 'ufund-ui/src/app/components')
| -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;  | 
