Skip to content

Commit

Permalink
Merge branch 'main' of work.github.com:router-protocol/tangled
Browse files Browse the repository at this point in the history
  • Loading branch information
jayeshbhole-rp committed Oct 25, 2024
2 parents c9a3a51 + 4c1f2e0 commit f58370b
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 f58370b

Please sign in to comment.