diff --git a/client/www/js/profileView.js b/client/www/js/profileView.js index 475440db4..f4656928e 100644 --- a/client/www/js/profileView.js +++ b/client/www/js/profileView.js @@ -420,15 +420,14 @@ var renderProfile = function(index, prfl) { message: 'Connecting to ' + data.name, detail: preConnectMsg, buttons: ['Disconnect', 'Connect'], - }, - function(resp) { - if (resp === 1) { - prflConnect(); - } else { - closeMenu($profile); - } - }, - ); + } + ).then(function(resp) { + if (resp.response === 1) { + prflConnect(); + } else { + closeMenu($profile); + } + }); } else { prflConnect(); }