Skip to content

Commit

Permalink
fix: 🐛 Fixed hooks export in the sdk-react module
Browse files Browse the repository at this point in the history
  • Loading branch information
kostysh committed Feb 14, 2024
1 parent 2db274d commit 17d6f0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/manager/src/components/Deals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export const Deals = () => {
if (!node) {
return;
}
const { records } = await node.deals.getAll.query({}) as PaginatedDealRecords;
const { records } = (await node.deals.getAll.query(
{},
)) as PaginatedDealRecords;
console.log('Deals:', records);
setDeals(records);
}, [node]);
Expand Down
1 change: 1 addition & 0 deletions packages/react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default defineConfig({
index: './src/index.ts',
providers: './src/providers/index.ts',
utils: './src/utils/index.ts',
hooks: './src/hooks/index.ts',
},
name: '@windingtree/sdk-react',
formats: ['es', 'cjs'],
Expand Down

0 comments on commit 17d6f0f

Please sign in to comment.