Review transation copying state at startup so it doesn't contaminate the sendFlowController.

This commit is contained in:
Brendon Duncan 2018-08-09 13:25:06 +12:00
commit 188ddcba58

View file

@ -75,8 +75,9 @@ function reviewController(addressbookService, bitcoinCashJsService, bitcore, bit
function onBeforeEnter(event, data) {
console.log('walletSelector onBeforeEnter sendflow ', sendFlowService.getState());
defaults = configService.getDefaults();
sendFlowData = sendFlowService;
sendFlowData = sendFlowService.getState();
originWalletId = sendFlowData.fromWalletId;
satoshis = parseInt(sendFlowData.amount, 10);
toAddress = sendFlowData.toAddress;