mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-05 12:04:14 +00:00
Basic crud working?
This commit is contained in:
@@ -8,9 +8,7 @@ export function useSubscriptionStatusContext() {
|
||||
}
|
||||
const context = useContext(SubscriptionStatusContext);
|
||||
if (context === undefined) {
|
||||
throw new Error(
|
||||
"useSubscriptionStatusContext must be used within an SubscriptionStatusProvider"
|
||||
);
|
||||
return null;
|
||||
}
|
||||
return context;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user