From ee1baddb8d3c89d0a9dd9af49525bfc8a7686333 Mon Sep 17 00:00:00 2001 From: imeepos Date: Fri, 26 Dec 2025 10:36:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=99=E9=A2=9D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hooks/core/use-user-balance.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hooks/core/use-user-balance.ts b/hooks/core/use-user-balance.ts index 082343f..0b0fa98 100644 --- a/hooks/core/use-user-balance.ts +++ b/hooks/core/use-user-balance.ts @@ -7,12 +7,10 @@ export const useUserBalance = () => { const [error, setError] = useState(null) const [balance, setBalance] = useState(0) - const load = async (userId?: string) => { + const load = async () => { try { setLoading(true) - const { data, error } = await subscription.list( - userId ? { query: { referenceId: userId } } : undefined - ) + const { data, error } = await subscription.list() if (error) { setError(error)