fix some integration tests now that PriceHistoryChart.test.tx is disabled
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 2m59s

This commit is contained in:
2025-11-27 19:51:32 -08:00
parent 61f62487d4
commit caa1206c3d
3 changed files with 18 additions and 14 deletions

View File

@@ -36,20 +36,20 @@ export const ProfileManager: React.FC<ProfileManagerProps> = ({ isOpen, onClose,
// Profile state
const [fullName, setFullName] = useState(profile?.full_name || '');
const [avatarUrl, setAvatarUrl] = useState(profile?.avatar_url || '');
const { execute: updateProfile, loading: profileLoading } = useApi<Profile>(apiClient.updateUserProfile);
const { execute: updateProfile, loading: profileLoading } = useApi<Profile, [Partial<Profile>]>(apiClient.updateUserProfile);
// Password state
const [password, setPassword] = useState('');
const [confirmPassword, setConfirmPassword] = useState('');
const { execute: updatePassword, loading: passwordLoading } = useApi(apiClient.updateUserPassword);
const { execute: updatePassword, loading: passwordLoading } = useApi<unknown, [string]>(apiClient.updateUserPassword);
const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false);
// Data & Privacy state
const { execute: exportData, loading: exportLoading } = useApi(apiClient.exportUserData);
const { execute: deleteAccount, loading: deleteLoading } = useApi(apiClient.deleteUserAccount);
const { execute: exportData, loading: exportLoading } = useApi<unknown, []>(apiClient.exportUserData);
const { execute: deleteAccount, loading: deleteLoading } = useApi<unknown, [string]>(apiClient.deleteUserAccount);
// Preferences state
const { execute: updatePreferences } = useApi<Profile>(apiClient.updateUserPreferences);
const { execute: updatePreferences } = useApi<Profile, [Partial<Profile['preferences']>]>(apiClient.updateUserPreferences);
const [isConfirmingDelete, setIsConfirmingDelete] = useState(false);
const [passwordForDelete, setPasswordForDelete] = useState('');
@@ -62,9 +62,9 @@ export const ProfileManager: React.FC<ProfileManagerProps> = ({ isOpen, onClose,
const [authAvatarUrl, setAuthAvatarUrl] = useState(''); // State for avatar URL
const [isForgotPassword, setIsForgotPassword] = useState(false);
const [rememberMe, setRememberMe] = useState(false);
const { execute: executeLogin, loading: loginLoading } = useApi<AuthResponse>(apiClient.loginUser);
const { execute: executeRegister, loading: registerLoading } = useApi<AuthResponse>(apiClient.registerUser);
const { execute: executePasswordReset, loading: passwordResetLoading } = useApi<{ message: string }>(apiClient.requestPasswordReset);
const { execute: executeLogin, loading: loginLoading } = useApi<AuthResponse, [string, string, boolean]>(apiClient.loginUser);
const { execute: executeRegister, loading: registerLoading } = useApi<AuthResponse, [string, string, string, string]>(apiClient.registerUser);
const { execute: executePasswordReset, loading: passwordResetLoading } = useApi<{ message: string }, [string]>(apiClient.requestPasswordReset);
useEffect(() => {