From dba624c33101bbd60e000f798c6af4305c0becf7 Mon Sep 17 00:00:00 2001 From: kevodwyer Date: Mon, 8 Apr 2024 12:29:31 +0100 Subject: [PATCH] updateSocial() race condition causing CAS Exception --- src/components/Login.vue | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/components/Login.vue b/src/components/Login.vue index 90a5a5e5..434535a7 100644 --- a/src/components/Login.vue +++ b/src/components/Login.vue @@ -186,21 +186,19 @@ module.exports = { that.$emit("initApp") - that.updateSocial(() => { - // that.$store.commit('CURRENT_MODAL', 'ModalTour'); - - console.log("Signing in/up took " + (Date.now()-creationStart)+" mS from function call"); - if (that.stayLoggedIn) { - let rootKey = context.rootKey.toByteArray(); - setRootKeyIntoCacheProm(context.username, rootKey).thenApply(function (isSupported) { - if (isSupported) { - console.log("Offline support enabled"); - } else { - console.log("Offline support not available"); - } - }); - } - }); + // that.$store.commit('CURRENT_MODAL', 'ModalTour'); + + console.log("Signing in/up took " + (Date.now()-creationStart)+" mS from function call"); + if (that.stayLoggedIn) { + let rootKey = context.rootKey.toByteArray(); + setRootKeyIntoCacheProm(context.username, rootKey).thenApply(function (isSupported) { + if (isSupported) { + console.log("Offline support enabled"); + } else { + console.log("Offline support not available"); + } + }); + } }, appFromUrl(){ const props = this.getPropsFromUrl();