Skip to content

Commit

Permalink
chore: release (#114)
Browse files Browse the repository at this point in the history
* chore: release

* Create fast-dodos-tease.md
  • Loading branch information
danielsimao authored Oct 16, 2024
1 parent 393dd31 commit 14796d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/fast-dodos-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@gobob/sats-wagmi": patch
---

feat: update balance hook
5 changes: 0 additions & 5 deletions .changeset/sixty-cobras-prove.md

This file was deleted.

2 changes: 1 addition & 1 deletion packages/sats-wagmi/src/hooks/useBalance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const useBalance = (props: UseBalanceProps = {}) => {
return useQuery({
enabled: Boolean(address),
queryKey: ['sats-balance', network, address],
refetchInterval: INTERVAL.SECONDS_30,
queryFn: async () => {
if (!address) {
return { confirmed: BigInt(0), unconfirmed: BigInt(0), total: BigInt(0) };
Expand All @@ -33,7 +34,6 @@ const useBalance = (props: UseBalanceProps = {}) => {

return { confirmed: BigInt(confirmed), unconfirmed: BigInt(unconfirmed), total: BigInt(total) };
},
refetchInterval: INTERVAL.SECONDS_30,
...props
});
};
Expand Down

0 comments on commit 14796d5

Please sign in to comment.