From b3ea59e26e17d50dad1568161b10db5d6fd91e57 Mon Sep 17 00:00:00 2001 From: Songkeys Date: Sat, 29 Jun 2024 01:45:59 +0800 Subject: [PATCH] fix: typing --- src/renderer/src/modules/wallet/tip-modal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/modules/wallet/tip-modal.tsx b/src/renderer/src/modules/wallet/tip-modal.tsx index db2c27822c..91c30aea21 100644 --- a/src/renderer/src/modules/wallet/tip-modal.tsx +++ b/src/renderer/src/modules/wallet/tip-modal.tsx @@ -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)