From e3931dc97626f3737da831d163413ee276bade01 Mon Sep 17 00:00:00 2001 From: varsha Date: Fri, 22 Jul 2022 13:48:35 +0530 Subject: [PATCH 1/2] nuber field bug fixed --- src/components/participant/ActionInputs/InputNumber.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/participant/ActionInputs/InputNumber.vue b/src/components/participant/ActionInputs/InputNumber.vue index 5c0113a6..80b96da8 100644 --- a/src/components/participant/ActionInputs/InputNumber.vue +++ b/src/components/participant/ActionInputs/InputNumber.vue @@ -84,7 +84,6 @@ computed:{ methods: { update() { if (!this.data.value) { - this.data.value = Number; return this.notifyErr(Messages.EVENT_ACTIONS.INVALID_INPUT); } else { this.$emit('input', this.data.value) From 83fda7630c3a76ab3c1077730472b07493359f5d Mon Sep 17 00:00:00 2001 From: Vishwas Date: Fri, 22 Jul 2022 14:15:46 +0530 Subject: [PATCH 2/2] fixed the collapsible bug at logout page event --- src/components/participant/Action.vue | 9 ++++--- .../participant/ActionInputs/SumsubKyc.vue | 26 +++++++++---------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/src/components/participant/Action.vue b/src/components/participant/Action.vue index f0c62ee2..32130500 100644 --- a/src/components/participant/Action.vue +++ b/src/components/participant/Action.vue @@ -174,13 +174,16 @@ export default { }, }, methods: { - checkIfUserHasLoggedIn() { + checkIfUserHasLoggedIn(e) { if (!this.userProfile) { // TODO: bad way of coding. We should only hide which is being clicked document.querySelectorAll(".card-header").forEach(elm => { elm.classList.add('collapsed') elm.attributes['aria-expanded'].value = false; - document.getElementById(elm.attributes['aria-controls'].value).style.display = 'none'; + const elemTohide = elm.nextSibling + if (elemTohide){ + elemTohide.style.display = 'none'; + } }) return this.notifyErr(Messsages.EVENT_ACTIONS.UNAUTHENTICATED); } @@ -197,7 +200,7 @@ export default { if (!this.authToken){ return; } - + this.isLoading = true; this.actions = []; diff --git a/src/components/participant/ActionInputs/SumsubKyc.vue b/src/components/participant/ActionInputs/SumsubKyc.vue index d2ea277b..ab5923ab 100644 --- a/src/components/participant/ActionInputs/SumsubKyc.vue +++ b/src/components/participant/ActionInputs/SumsubKyc.vue @@ -121,15 +121,11 @@ computed:{ async mounted() { this.$root.$on('bv::collapse::state', (collapseId, isJustShown) => { if(collapseId.includes('KYC') && isJustShown){ - this.dropDown() + this.dropDown() } - eventBus.$on(`disableInput${this.data._id}`, this.disableInput); - - }) - - - }, - + eventBus.$on(`disableInput${this.data._id}`, this.disableInput); + }) +}, methods:{ async update(){ try{ @@ -151,14 +147,15 @@ methods:{ }, async dropDown(){ if(!this.done){ - const data= await this.getNewAccessToken() - - this.launchWebSdk(data.token) + const data = await this.getNewAccessToken() + if(data){ + this.launchWebSdk(data.token) + } } }, async refreshToken(){ - const data= await this.getNewAccessToken() - return data.token + const data = await this.getNewAccessToken() + return data? data.token : null } , launchWebSdk(accessToken/*, applicantEmail, applicantPhone, customI18nMessages*/) { @@ -227,6 +224,9 @@ methods:{ }, async getNewAccessToken() { + if (!this.authToken) { + return; + } let url = `${this.$config.studioServer.BASE_URL}api/v1/sumsub/kyc/accesstoken`; let headers = { "Content-Type": "application/json",