show verification error
This commit is contained in:
@@ -20,8 +20,11 @@
|
|||||||
{{ t('complete_all_required_fields_to_proceed_with_identity_verification') }}
|
{{ t('complete_all_required_fields_to_proceed_with_identity_verification') }}
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
|
<div v-if="errorMessage">
|
||||||
|
{{ errorMessage }}
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="isLoading"
|
v-else-if="isLoading"
|
||||||
class="w-full flex space-x-2 justify-center mb-2"
|
class="w-full flex space-x-2 justify-center mb-2"
|
||||||
>
|
>
|
||||||
<IconInnerShadowTop
|
<IconInnerShadowTop
|
||||||
@@ -96,6 +99,7 @@ export default {
|
|||||||
isMathLoaded: false,
|
isMathLoaded: false,
|
||||||
redirectUrl: '',
|
redirectUrl: '',
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
|
errorMessage: '',
|
||||||
eidEasyData: {}
|
eidEasyData: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -162,6 +166,12 @@ export default {
|
|||||||
}).then(async (resp) => {
|
}).then(async (resp) => {
|
||||||
this.eidEasyData = await resp.json()
|
this.eidEasyData = await resp.json()
|
||||||
|
|
||||||
|
if (this.eidEasyData.error) {
|
||||||
|
this.errorMessage = this.eidEasyData.error
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (this.eidEasyData.check_completed) {
|
if (this.eidEasyData.check_completed) {
|
||||||
this.$emit('submit')
|
this.$emit('submit')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user