address testing errors

This commit is contained in:
lemonknowsall committed 2025-10-20 22:58:42 -07:00
1 parent 460a4777ee
commit 61fc4957e0
15 files changed
+45 -88

No files matched your search

+2 -2
View File
@@ -13,11 +13,11 @@ export function CashuProvider({ children }: { children: ReactNode }) {
);
}
export function useCashu(): UseCashuReturn {
export function useCashuContext(): UseCashuReturn {
const context = useContext(CashuContext);
if (!context) {
throw new Error('useCashu must be used within a CashuProvider');
throw new Error('useCashuContext must be used within a CashuProvider');
}
return context;