Skip to content

Commit

Permalink
Merge pull request #20 from router-protocol/fix/bitcoin-store
Browse files Browse the repository at this point in the history
fix: bitcoin store error message
  • Loading branch information
jayeshbhole-rp authored Oct 24, 2024
2 parents 2db5674 + 00b0ff7 commit 4c1f2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/hooks/useBitcoinStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import { BitcoinState } from '../store/Bitcoin.js';

export function useBitcoinStore<T>(selector: (state: BitcoinState) => T): T {
const { store } = useContext(BitcoinContext);
if (!store) throw new Error('Missing Ton Provider in the tree');
if (!store) throw new Error('Missing Bitcoin Provider in the tree');
return useStore(store, selector);
}

0 comments on commit 4c1f2e0

Please sign in to comment.