aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'ufund-ui/src/app')
-rw-r--r--ufund-ui/src/app/components/dashboard/dashboard.component.ts6
1 files changed, 0 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 1181608..2ab4db2 100644
--- a/ufund-ui/src/app/components/dashboard/dashboard.component.ts
+++ b/ufund-ui/src/app/components/dashboard/dashboard.component.ts
@@ -29,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