unit tests fixin
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 54s

This commit is contained in:
2025-11-21 20:24:38 -08:00
parent 7f24ef1790
commit 2a481c5eb9

View File

@@ -274,7 +274,7 @@ export const ProfileManager: React.FC<ProfileManagerProps> = ({ isOpen, onClose,
// Redirect to the backend OAuth initiation route
// The backend will then handle the redirect to the OAuth provider
// and eventually redirect back to the frontend with a token.
window.location.href = `/api/auth/${provider}`;
window.location.href = '/api/auth/' + provider;
// Set authLoading to true to show a spinner while redirecting
setAuthLoading(true);
};
@@ -328,7 +328,7 @@ export const ProfileManager: React.FC<ProfileManagerProps> = ({ isOpen, onClose,
<div className="text-center text-sm text-green-600 dark:text-green-400 bg-green-50 dark:bg-green-900/20 p-3 rounded-md">
{resetSuccessMessage}
</div>
</div>
)}
<div className="pt-2">
<button type="submit" disabled={authLoading} className="w-full bg-brand-secondary hover:bg-brand-dark disabled:bg-gray-400 text-white font-bold py-2.5 px-4 rounded-lg flex justify-center">
{authLoading ? <div className="w-5 h-5"><LoadingSpinner /></div> : 'Send Reset Link'}