Skip to content

Commit a9fc1be

Browse files
handle disappeared form
1 parent 51df7e0 commit a9fc1be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/controllers/walletHome.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
667667
this.setForm = function(to, amount, comment, asset, recipient_device_address) {
668668
this.resetError();
669669
var form = $scope.sendForm;
670-
if (!form.address) // disappeared?
670+
if (!form || !form.address) // disappeared?
671671
return console.log('form.address has disappeared');
672672
if (to) {
673673
form.address.$setViewValue(to);

0 commit comments

Comments
 (0)