fix error message

This commit is contained in:
Javier 2016-08-25 14:19:38 -03:00
commit 73391aed32

View file

@ -7,14 +7,15 @@ angular.module('copayApp.controllers').controller('confirmController', function(
// An alert dialog
var showAlert = function(title, msg, cb) {
$log.warn(title + ": " + msg);
var message = msg.message ? msg.message : msg;
$log.warn(title + ": " + message);
var alertPopup = $ionicPopup.alert({
title: title,
template: msg
template: message
});
if (!cb) cb = function() {};
alertPopup.then(cb);
};