fix(user): register dialog, KYC modal, and home loading gaps

Repair gift-card register success modal text, enforce KYC with correct identity checks, and show skeleton/fallback while home layout loads.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-10 11:48:28 +03:30
co-authored by Cursor
parent 2977b479dd
commit d6a2caffe0
7 changed files with 116 additions and 63 deletions
+5 -1
View File
@@ -169,6 +169,7 @@ import {
useChatService,
} from '@/utils/chat'
import { getToken } from '@/utils'
import { isCustomerIdentityVerified } from '@/utils/customerIdentity'
import { message } from 'ant-design-vue'
import { showBrowserNotification } from '@/utils/browserNotification'
@@ -329,7 +330,10 @@ watch(
const userStore = useUserStore()
const settingsStore = useSettingsStore()
const isKycRequired = computed(
() => Boolean(getToken()) && (userStore.userInfo?.is_legal === 0 || !userStore.userInfo?.is_legal),
() =>
Boolean(getToken()) &&
Boolean(userStore.userInfo) &&
!isCustomerIdentityVerified(userStore.userInfo?.is_legal),
)
const giftCardFabAccent = computed(