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)