fix: resolve BasicIcon setAttribute crash and use valid icon name in RequiredKycModal

This commit is contained in:
2026-11-10 15:24:52 +03:30
parent cec78883a2
commit b03808c442
2 changed files with 7 additions and 5 deletions
+6 -4
View File
@@ -33,10 +33,12 @@ const color = computed(() => {
})
onMounted(() => {
if (props.size) {
const svg: SVGElement = refIcon.value?.children[0] as SVGElement
svg.setAttribute('width', props.size as string)
svg.setAttribute('height', props.size as string)
if (props.size && refIcon.value) {
const svg = refIcon.value.children?.[0] as SVGElement | undefined
if (svg && typeof svg.setAttribute === 'function') {
svg.setAttribute('width', String(props.size))
svg.setAttribute('height', String(props.size))
}
}
})
</script>
+1 -1
View File
@@ -10,7 +10,7 @@
<div class="kyc-modal-content text-center py-2" dir="rtl">
<!-- Icon with soft glowing background -->
<div class="inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-amber-50 text-amber-600 border border-amber-200 mb-4 shadow-sm">
<BasicIcon icon="vuesax-bold:security-user" size="36" color="#d97706" />
<BasicIcon icon="vuesax-linear:security-user" size="36" color="#d97706" />
</div>
<!-- Title -->