web-manager 3.1.15 → 3.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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