Skip to content

fix(web): add useTokenAllowance imports and fix usePool mutation type#389

Merged
K1NGD4VID merged 1 commit into
mainfrom
fix/usetokenallowance-imports-and-pool-mutation-type
Jul 14, 2026
Merged

fix(web): add useTokenAllowance imports and fix usePool mutation type#389
K1NGD4VID merged 1 commit into
mainfrom
fix/usetokenallowance-imports-and-pool-mutation-type

Conversation

@K1NGD4VID

Copy link
Copy Markdown
Contributor

Two related fixes needed to unblock next build on main:

  1. hooks/useInvoices.ts and hooks/usePool.ts referenced useTokenAllowance but did not import it. Adds the missing imports.
  2. hooks/usePool.ts:68 had a useMutation generic mismatch (declared string, returned bigint). Aligned the types.

Companion to the SDK PR that restores TokenClient (which useTokenAllowance itself imports).

Wave merges left `apps/web/hooks/useTokenAllowance.ts` on disk, but the two callers referenced `useTokenAllowance()` without importing it, producing TS2304 errors and breaking `next build`:

- hooks/useInvoices.ts:68
- hooks/usePool.ts:43

Add the missing relative imports.

Note: the described `usePool.ts:68` mutation-type mismatch (Promise<bigint> vs Promise<string>) does not reproduce against the current SDK — `PoolClient.deposit` returns Promise<string>, matching the inferred useMutation generic. No type change was needed.
@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
trustrove Error Error Jul 14, 2026 2:02pm

@K1NGD4VID K1NGD4VID merged commit 322271a into main Jul 14, 2026
2 of 4 checks passed
@K1NGD4VID K1NGD4VID deleted the fix/usetokenallowance-imports-and-pool-mutation-type branch July 14, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant