diff --git a/packages/dashboard-v2/src/hooks/useActivePlan.js b/packages/dashboard-v2/src/hooks/useActivePlan.js index 53e28b63..de71a036 100644 --- a/packages/dashboard-v2/src/hooks/useActivePlan.js +++ b/packages/dashboard-v2/src/hooks/useActivePlan.js @@ -4,7 +4,7 @@ import freeTier from "../lib/tiers"; import { usePlans } from "../contexts/plans"; export default function useActivePlan(user) { - const { plans, error } = usePlans(); + const { plans, loading, error } = usePlans(); const [activePlan, setActivePlan] = useState(freeTier); @@ -17,6 +17,7 @@ export default function useActivePlan(user) { return { error, plans, + loading, activePlan, }; }