diff --git a/src/js/services/storageService.js b/src/js/services/storageService.js index bde3215a2..44081a81f 100644 --- a/src/js/services/storageService.js +++ b/src/js/services/storageService.js @@ -204,10 +204,16 @@ angular.module('copayApp.services') storage.get('profile', function(getErr, getStr) { if (getErr) { cb(getErr, null); - } else { - profile = Profile.fromString(getStr); - cb(null, profile); + return; } + + if (!getStr) { + cb(null, null); + return; + } + + profile = Profile.fromString(getStr); + cb(null, profile); }); };