Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsk committed Jul 6, 2016
1 parent 847e21a commit 49448ef
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions public_html/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,11 @@ angular.module('app.controllers', [])
});
lastView = $ionicHistory.backView();
console.log('Last View',lastView);
if(lastView.stateId=="checkOut"){ $state.go('checkOut', {}, {location: "replace", reload: true}); }
else{$state.go('profile', {}, {location: "replace", reload: true});}
//BUG to be fixed soon
/*if(lastView.stateId=="checkOut"){ $state.go('checkOut', {}, {location: "replace", reload: true}); }
else{*/
$state.go('profile', {}, {location: "replace", reload: true});
//}

}).error(function() {
var alertPopup = $ionicPopup.alert({
Expand Down Expand Up @@ -297,4 +300,4 @@ angular.module('app.controllers', [])


})


0 comments on commit 49448ef

Please sign in to comment.