Fix: Ensure BudgetProvider usage
The `useBudget` hook was being called outside of a `BudgetProvider`, leading to an error. This commit ensures that the `useBudget` hook is only called within the `BudgetProvider` context.
This commit is contained in:
@@ -5,7 +5,7 @@ import AddTransactionButton from '@/components/AddTransactionButton';
|
||||
import Header from '@/components/Header';
|
||||
import WelcomeDialog from '@/components/onboarding/WelcomeDialog';
|
||||
import HomeContent from '@/components/home/HomeContent';
|
||||
import { useBudget } from '@/contexts/BudgetContext';
|
||||
import { useBudget } from '@/contexts/budget/BudgetContext';
|
||||
import { useAuth } from '@/contexts/auth';
|
||||
import { useWelcomeDialog } from '@/hooks/useWelcomeDialog';
|
||||
import { useDataInitialization } from '@/hooks/useDataInitialization';
|
||||
|
||||
Reference in New Issue
Block a user