From a11aa375f51d0b4f45e6f8cc6a722530813815c0 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Tue, 28 Feb 2017 10:40:49 -0300 Subject: [PATCH] Define an empty array if alternatives currency are not available --- src/js/controllers/preferencesAltCurrency.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/controllers/preferencesAltCurrency.js b/src/js/controllers/preferencesAltCurrency.js index a6c56eab2..33c0e47fb 100644 --- a/src/js/controllers/preferencesAltCurrency.js +++ b/src/js/controllers/preferencesAltCurrency.js @@ -4,7 +4,7 @@ angular.module('copayApp.controllers').controller('preferencesAltCurrencyControl function($scope, $log, $timeout, $ionicHistory, configService, rateService, lodash, profileService, walletService, storageService) { var next = 10; - var completeAlternativeList; + var completeAlternativeList = []; function init() { var unusedCurrencyList = [{