aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/dashboard/dashboard.component.ts
diff options
context:
space:
mode:
authorGunther6070 <haydenhartman10@yahoo.com>2025-04-05 13:44:33 -0400
committerGunther6070 <haydenhartman10@yahoo.com>2025-04-05 13:44:33 -0400
commitef52495d781a3adcec79bfbc9067f70f5ec3c8ab (patch)
treee16e8cf36f1cafcf198d21d57a0b3a908116b3df /ufund-ui/src/app/components/dashboard/dashboard.component.ts
parentd7c974a98de42f41f3ca16f961d2dee96a3c4313 (diff)
parent0103ffc6f84d04433943c644ab759c1d04b5e681 (diff)
downloadJellySolutions-ef52495d781a3adcec79bfbc9067f70f5ec3c8ab.tar.gz
JellySolutions-ef52495d781a3adcec79bfbc9067f70f5ec3c8ab.tar.bz2
JellySolutions-ef52495d781a3adcec79bfbc9067f70f5ec3c8ab.zip
Merge branch 'main' into checkout-improvement
# Conflicts: # ufund-ui/src/app/components/funding-basket/funding-basket.component.html # ufund-ui/src/app/components/funding-basket/funding-basket.component.ts
Diffstat (limited to 'ufund-ui/src/app/components/dashboard/dashboard.component.ts')
-rw-r--r--ufund-ui/src/app/components/dashboard/dashboard.component.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/ufund-ui/src/app/components/dashboard/dashboard.component.ts b/ufund-ui/src/app/components/dashboard/dashboard.component.ts
index 9bf7627..2ab4db2 100644
--- a/ufund-ui/src/app/components/dashboard/dashboard.component.ts
+++ b/ufund-ui/src/app/components/dashboard/dashboard.component.ts
@@ -5,6 +5,7 @@ import {CupboardService} from '../../services/cupboard.service';
import {UsersService} from '../../services/users.service';
import {BehaviorSubject} from 'rxjs';
import {GoalType, Need} from '../../models/Need';
+import {userType} from '../../models/User';
@Component({
selector: 'app-dashboard',
@@ -28,12 +29,6 @@ export class DashboardComponent implements OnInit{
) {}
ngOnInit() {
- let user = this.authService.getCurrentUser()
- if(!localStorage.getItem("credential") && !user) {
- this.router.navigate(['/login'])
- return
- }
-
this.userService.getCount().subscribe(count => this.count.next(count))
this.cupboardService.getNeeds().subscribe(needs => {
let totalValue = 0
@@ -55,4 +50,5 @@ export class DashboardComponent implements OnInit{
}
+ protected readonly userType = userType;
}