icon changed

This commit is contained in:
2026-06-17 11:26:26 +03:30
parent 32dde73dff
commit b42b123957
4 changed files with 108 additions and 149 deletions
@@ -21,6 +21,7 @@ import { usePriceChart, type ChartMetalType } from './usePriceChart'
import type { HomeActionItem } from '../layouts/types'
import { getHomeLayoutId } from '../layouts/registry'
import { initHomePageData, resetHomePageData, useHomePageLoading } from './useHomePageData'
import { ensureAuthenticatedRoute } from '@/app/setupRouter'
import { resetWalletPageData } from '../../wallet/composables/useWalletPageData'
import { resetAddressPageData } from '../../address/composables/useAddressPageData'
import { resetTransactionsPageData } from '../../transactions/composables/useTransactionsPageData'
@@ -279,13 +280,10 @@ export function useHomePageContext() {
}
async function ensureHomeUserAndData() {
const userStore = useUserStore()
if (getToken() && !userStore.userInfo) {
await userStore.getMyInfo()
const authed = await ensureAuthenticatedRoute()
if (!authed) {
return
}
if (getToken()) {
await initHomePageData()
}
await initHomePageData()
}