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

Commit

Permalink
Catch the cancel event
Browse files Browse the repository at this point in the history
  • Loading branch information
johansten committed Mar 14, 2019
1 parent 9633158 commit 642c587
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/core/components/tx-reviewer/review-submit.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ export default /* @ngInject */ function ($scope, Keychain, Signer, Submitter, Tr
$scope.operations = humanizer.parse(context.tx);
$scope.state = 'signed';
} else {
await Signer.init(context);
await interactiveSign(context);
submit();
try {
await Signer.init(context);
await interactiveSign(context);
submit();
} catch (err) {
close();
}
}
}

Expand Down

0 comments on commit 642c587

Please sign in to comment.