aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts
blob: c44aa277028cbec8e566c0763c3779da972cf90d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import {Component, OnInit} from '@angular/core';
import {Router} from '@angular/router';
import {UsersService} from '../../services/users.service';

@Component({
  selector: 'app-funding-basket',
  standalone: false,
  templateUrl: './funding-basket.component.html',
  styleUrl: './funding-basket.component.css'
})
export class FundingBasketComponent implements OnInit{
    constructor(
       private router: Router,
       private userService: UsersService
    ) {}

    ngOnInit() {
        if (!this.userService.getCurrentUser()) {
            this.router.navigate(['/login'], {queryParams: {redir: this.router.url}})
        }
    }

}