diff --git a/src/js/controllers/customAmount.js b/src/js/controllers/customAmount.js
index a5dad8701..ea3e56ceb 100644
--- a/src/js/controllers/customAmount.js
+++ b/src/js/controllers/customAmount.js
@@ -1,6 +1,6 @@
'use strict';
-angular.module('copayApp.controllers').controller('customAmountController', function($rootScope, $scope, $stateParams, txFormatService, platformInfo) {
+angular.module('copayApp.controllers').controller('customAmountController', function($rootScope, $scope, $stateParams, $ionicHistory, txFormatService, platformInfo) {
$scope.$on("$ionicView.beforeEnter", function(event, data) {
var satToBtc = 1 / 100000000;
@@ -16,4 +16,12 @@ angular.module('copayApp.controllers').controller('customAmountController', func
window.plugins.socialsharing.share(uri, null, null, null);
};
+ $scope.finish = function() {
+ $ionicHistory.nextViewOptions({
+ disableAnimate: false,
+ historyRoot: true
+ });
+ $ionicHistory.goBack(-2);
+ };
+
});
diff --git a/www/views/customAmount.html b/www/views/customAmount.html
index 4a5d48496..0e250ad47 100644
--- a/www/views/customAmount.html
+++ b/www/views/customAmount.html
@@ -6,7 +6,7 @@
-