From 222b6712898d8160f6ec3daa2db07b09bad14b3d Mon Sep 17 00:00:00 2001 From: Purp1e <47248616+Purple-CSGO@users.noreply.github.com> Date: Sun, 23 Mar 2025 22:52:39 +0800 Subject: [PATCH] [fix] lint and building errors --- src/app/prepare/page.tsx | 2 +- src/components/cstb/SteamUsers.tsx | 2 +- src/components/window/SideBar.tsx | 2 +- src/store/steam.ts | 2 +- src/types/steam.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/prepare/page.tsx b/src/app/prepare/page.tsx index 8207543..b586066 100644 --- a/src/app/prepare/page.tsx +++ b/src/app/prepare/page.tsx @@ -39,7 +39,7 @@ export default function Page() { steam.setCsDir(e.target.value) }} /> -

当前用户64位SteamID:{steam.currentUser()?.steamID64}

+

当前用户64位SteamID:{steam.currentUser()?.steam_id64}

) diff --git a/src/components/cstb/SteamUsers.tsx b/src/components/cstb/SteamUsers.tsx index 4075e18..88946d6 100644 --- a/src/components/cstb/SteamUsers.tsx +++ b/src/components/cstb/SteamUsers.tsx @@ -54,7 +54,7 @@ const SteamUsers = ({ className }: { className?: string }) => { {user.steam_id32} - {user.steam_id64?.toString()} + {user.steam_id64.toString()} {user.recent > 0 && ( diff --git a/src/components/window/SideBar.tsx b/src/components/window/SideBar.tsx index bb7f568..db26bc6 100644 --- a/src/components/window/SideBar.tsx +++ b/src/components/window/SideBar.tsx @@ -55,7 +55,7 @@ const Avatar = () => { avatar { setUsers(users) } -const selectUser = async (index: number) => { +const selectUser = (index: number) => { const user = steamStore.state.users.at(index) console.log(index, user) if (user) { diff --git a/src/types/steam.ts b/src/types/steam.ts index ed2a16e..4ec47ee 100644 --- a/src/types/steam.ts +++ b/src/types/steam.ts @@ -1,7 +1,7 @@ import type { AdvancedListItem } from "@/types/common" export interface SteamUser extends AdvancedListItem { - steam_id64: BigInt + steam_id64: bigint steam_id32: number account_name: string persona_name: string