Fix pop state on the send flow

This commit is contained in:
Jean-Baptiste Dominguez 2018-08-09 13:15:21 +09:00
commit 77f6210076

View file

@ -68,6 +68,10 @@ function amountController(configService, $filter, gettextCatalog, $ionicHistory,
function onBeforeEnter(event, data) {
console.log('amount onBeforeEnter sendflow ', sendFlowService.getState());
if (data.direction == "back") {
sendFlowService.popState();
}
initCurrencies();
passthroughParams = sendFlowService;
@ -210,7 +214,6 @@ function amountController(configService, $filter, gettextCatalog, $ionicHistory,
}
function goBack() {
sendFlowService.popState();
$ionicHistory.goBack();
}