session expired
This commit is contained in:
@@ -42,7 +42,7 @@ export class FastrewardComponent implements OnInit {
|
||||
familyTotalData => {
|
||||
this.familyTotalData = familyTotalData;
|
||||
console.log("FAMILY RETURN->", this.familyTotalData);
|
||||
this.familyData = this.familyTotalData.result_list.slice(0,3);
|
||||
this.familyData = this.familyTotalData.result_list; //.slice(0,3);
|
||||
// debugger;
|
||||
this.session_image_server = this.familyTotalData.session_image_server;
|
||||
console.log("FAMILY RETURN DATA->", this.familyData);
|
||||
|
||||
@@ -62,9 +62,17 @@ export class HomePage implements OnInit {
|
||||
this.profilePicture = this.sessionDataProviderService.profilePicture(this.sessionDataProviderService.session, this.sessionDataProviderService.member_uid);
|
||||
|
||||
this.walletPresentation();
|
||||
}
|
||||
ngOnInit() {
|
||||
this.allInitFunctions();
|
||||
|
||||
|
||||
}
|
||||
|
||||
ionViewWillEnter(){
|
||||
console.log('Home page did enter - > ionViewWillEnter');
|
||||
this.allInitFunctions();
|
||||
}
|
||||
walletPresentation(){
|
||||
this.walletData = this.userWalletService.getWallet();
|
||||
if( this.walletData?.length > 0 ) {
|
||||
|
||||
@@ -35,9 +35,23 @@ export class WrenchService {
|
||||
);
|
||||
/*
|
||||
We have to check if this sessio
|
||||
{"status_msg":"invalid_session_msg","internal_return":"-9999"}
|
||||
*/
|
||||
// if (apiReturn.internal_return == -9999){
|
||||
//
|
||||
// }
|
||||
|
||||
apiReturn.pipe().subscribe(ret => {
|
||||
//alert('Todays report: ' + internal_return);
|
||||
|
||||
if (ret["internal_return"] == -9999){
|
||||
console.log("AMEYE**** ",ret["internal_return"]);
|
||||
this.sessionDataProviderService.DestroySessionOnLogout();
|
||||
this.router.navigate(['login']);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
console.log("apiReturn --->",apiReturn);
|
||||
|
||||
return apiReturn;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user