mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 16:33:36 +00:00
address testing errors
This commit is contained in:
1 parent
460a4777ee
commit
61fc4957e0
15 files changed
+45
-88
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user