fix: Remove duplicate state declarations in useCampaignCreator.ts
This commit is contained in:
@@ -438,10 +438,12 @@ export const useCampaignCreator = () => {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
// Personalization
|
// Personalization
|
||||||
const [userPreferences, setUserPreferences] = useState<any>(null);
|
// Removed duplicate state declarations that were causing build errors
|
||||||
const [isLoadingPreferences, setIsLoadingPreferences] = useState(false);
|
// These are already declared at the top of the hook
|
||||||
const [recommendations, setRecommendations] = useState<any>(null);
|
// const [userPreferences, setUserPreferences] = useState<any>(null);
|
||||||
const [isLoadingRecommendations, setIsLoadingRecommendations] = useState(false);
|
// const [isLoadingPreferences, setIsLoadingPreferences] = useState(false);
|
||||||
|
// const [recommendations, setRecommendations] = useState<any>(null);
|
||||||
|
// const [isLoadingRecommendations, setIsLoadingRecommendations] = useState(false);
|
||||||
|
|
||||||
const getPersonalizedDefaults = useCallback(
|
const getPersonalizedDefaults = useCallback(
|
||||||
async (formType: string): Promise<any> => {
|
async (formType: string): Promise<any> => {
|
||||||
|
|||||||
Reference in New Issue
Block a user