diff --git a/package-lock.json b/package-lock.json index cf535fe19..d2f36ed0c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "harmless_key", - "version": "2.5.1", + "version": "2.5.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0df1be605..45449ac3f 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "2.5.1", + "version": "2.5.2", "name": "harmless_key", "description": "A Dungeons and Dragons Combat Tracker", "productName": "Harmless Key", diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 9a6ed45b0..23da62ae3 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -49,18 +49,18 @@ const user_actions = { }, async setUserInfo({ commit, dispatch, rootGetters }) { if(rootGetters.user) { - const user = await users_ref.child(rootGetters.user.uid) + const user = users_ref.child(rootGetters.user.uid); user.on("value", async user_snapshot => { const user_info = user_snapshot.val(); if(user_info) { //Fetch patron info with email - const email = (user_info.patreon_email) ? user_info.patreon_email : user_info.email; + const email = (user_info.patreon_email) ? user_info.patreon_email.toLowerCase() : user_info.email.toLowerCase(); // User always basic reward tier let path = `tiers/basic`; - // Use firebise serverTimeOffset to get the date from the server and not the client. + // Use firebase serverTimeOffset to get the date from the server and not the client. // https://firebase.google.com/docs/database/web/offline-capabilities#clock-skew let time_ms = 0 await db.ref("/.info/serverTimeOffset")