[fix] lint and building errors

This commit is contained in:
Purp1e
2025-03-23 22:52:39 +08:00
parent 1a0477d6b9
commit 222b671289
5 changed files with 5 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ export default function Page() {
steam.setCsDir(e.target.value)
}}
/>
<p>64SteamID{steam.currentUser()?.steamID64}</p>
<p>64SteamID{steam.currentUser()?.steam_id64}</p>
</div>
</div>
)

View File

@@ -54,7 +54,7 @@ const SteamUsers = ({ className }: { className?: string }) => {
{user.steam_id32}
</Chip>
<Chip size="sm" className="bg-zinc-200 dark:bg-zinc-800">
{user.steam_id64?.toString()}
{user.steam_id64.toString()}
</Chip>
{user.recent > 0 && (
<Chip size="sm" color="primary">

View File

@@ -55,7 +55,7 @@ const Avatar = () => {
<img
src={
steam.currentUser()?.avatar
? `data:image/png;base64,${steam.currentUser()?.avatar}`
? `data:image/png;base64,${steam.currentUser()?.avatar || ''}`
: "/logo_square.png"
}
alt="avatar"

View File

@@ -100,7 +100,7 @@ const getUsers = async () => {
setUsers(users)
}
const selectUser = async (index: number) => {
const selectUser = (index: number) => {
const user = steamStore.state.users.at(index)
console.log(index, user)
if (user) {

View File

@@ -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