Streamlined display of memo.

This commit is contained in:
Brendon Duncan 2018-08-07 11:34:35 +12:00
commit 7d1fff424a

View file

@ -445,11 +445,9 @@ function reviewController(addressbookService, bitcoinCashJsService, bitcore, bit
function handleThirdPartyInitIfBip70() { function handleThirdPartyInitIfBip70() {
if (vm.thirdParty.id === 'bip70') { if (vm.thirdParty.id === 'bip70') {
if (vm.thirdParty.memo) { vm.memo = vm.thirdParty.memo;
// Why not the whole memo? vm.memoExpanded = !!vm.memo;
vm.memo = 'Payment request for BitPay invoice.\n' + toAddress + ' for merchant';
vm.memoExpanded = true;
}
txPayproData = { txPayproData = {
caTrusted: vm.thirdParty.caTrusted, caTrusted: vm.thirdParty.caTrusted,
domain: vm.thirdParty.domain, domain: vm.thirdParty.domain,