web-manager 3.1.15 → 3.1.16
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/account.js +3 -0
- package/package.json +1 -1
package/lib/account.js
CHANGED
@@ -156,6 +156,9 @@ Account.prototype.resolve = function (account, options) {
|
|
156
156
|
return new Promise(function(resolve, reject) {
|
157
157
|
var currentUser = firebase.auth().currentUser;
|
158
158
|
|
159
|
+
account = account || {};
|
160
|
+
options = options || {};
|
161
|
+
|
159
162
|
// If there is no user logged in or we choose not to fetch the account, resolve a default account
|
160
163
|
if (!currentUser || !currentUser.uid || options.fetchNewAccount === false) {
|
161
164
|
return resolve(self._resolveAccount(currentUser, account, options));
|
package/package.json
CHANGED