fix: typing

This commit is contained in:
Songkeys 2024-06-29 01:45:59 +08:00
parent e02d5ee735
commit b3ea59e26e
1 changed files with 2 additions and 2 deletions

View File

@ -17,11 +17,11 @@ import { useSettingModal } from "../settings/modal/hooks"
const DEFAULT_RECOMMENDED_TIP = 0.1
export const TipModalContent: FC<{
userId: string
userId?: string
feedId?: string
}> = ({ userId, feedId }) => {
const user = useUser()
const myWallet = useWallet({ userId: user.id })
const myWallet = useWallet({ userId: user?.id })
const myWalletData = myWallet.data?.[0]
const balanceBigInt = BigInt(myWalletData?.powerToken ?? 0)