web-manager 3.1.3 → 3.1.4

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.
Files changed (2) hide show
  1. package/lib/account.js +8 -1
  2. package/package.json +2 -2
package/lib/account.js CHANGED
@@ -357,7 +357,14 @@ Account.prototype._resolveAccount = function (currentUser, account, options) {
357
357
  referralURL.pathname = '/';
358
358
  referralURL.searchParams.set('aff', account.affiliate.code)
359
359
 
360
- authCreatedEl.setInnerHTML(new Date(parseInt(currentUser.metadata.a)).toLocaleString(undefined, { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }))
360
+ authCreatedEl.setInnerHTML(
361
+ new Date(
362
+ parseInt(utilities.get(currentUser, 'metadata.a', '0'))
363
+ )
364
+ .toLocaleString(undefined, {
365
+ weekday: 'long', year: 'numeric', month: 'long', day: 'numeric',
366
+ })
367
+ )
361
368
  authPhoneInput.setInnerHTML(currentUser.phoneNumber).setValue(currentUser.phoneNumber)
362
369
 
363
370
  billingSubscribeBtn.setAttribute('hidden', true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "Easily access important variables such as the query string, current domain, and current page in a single object.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -28,4 +28,4 @@
28
28
  "firebase": "^8.10.1",
29
29
  "lazysizes": "^5.3.2"
30
30
  }
31
- }
31
+ }