Commit ebd028f3 authored by dev0tion's avatar dev0tion

Use login component instead of wallet status

parent 1712da38
...@@ -15,25 +15,26 @@ export class AppComponent implements OnInit { ...@@ -15,25 +15,26 @@ export class AppComponent implements OnInit {
private responseMessage: any; private responseMessage: any;
ngOnInit() { ngOnInit() {
this.checkWalletStatus(); this.router.navigate(['/login']);
//this.checkWalletStatus();
} }
private checkWalletStatus(){ // private checkWalletStatus(){
this.apiService.getWalletStatus() // this.apiService.getWalletStatus()
.subscribe( // .subscribe(
response => { // response => {
if (response.status >= 200 && response.status < 400) { // if (response.status >= 200 && response.status < 400) {
this.responseMessage = response; // this.responseMessage = response;
this.router.navigate(['/login']); // this.router.navigate(['/login']);
} // }
}, // },
error => { // error => {
this.errorMessage = <any>error; // this.errorMessage = <any>error;
if (error.status === 400 || error.status === 404) { // if (error.status === 400 || error.status === 404) {
this.router.navigate(['/setup']); // this.router.navigate(['/setup']);
console.log(this.errorMessage); // console.log(this.errorMessage);
} // }
} // }
); // );
} // }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment