Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 5 additions & 16 deletions app/complete-profile/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ function CompleteProfileContent() {
const [usernameError, setUsernameError] = useState<string>('');
const [user, setUser] = useState<User | null>(null);
const [isValidating, setIsValidating] = useState(true);
const [oauthProvider, setOauthProvider] = useState<string>('');
const usernameCheckTimeout = useRef<ReturnType<typeof setTimeout> | null>(null);

const getSupabaseClient = () => {
Expand Down Expand Up @@ -107,8 +106,6 @@ function CompleteProfileContent() {
setLastName(oauthLastName);
}

// Set OAuth provider for UI display
setOauthProvider(metadata.provider || 'unknown');

console.log('OAuth provider data:', {
provider: metadata.provider || 'unknown',
Expand Down Expand Up @@ -251,7 +248,7 @@ function CompleteProfileContent() {
return;
}

toast.success('Profile completed successfully! Welcome to CodeUnia! 🎉');
toast.success('Profile completed successfully! Welcome to Codeunia! 🎉');
router.push(returnUrl);
} catch (error) {
console.error('Error updating profile:', error);
Expand Down Expand Up @@ -304,7 +301,7 @@ function CompleteProfileContent() {
Welcome! Let&apos;s set up your profile
</h1>
<p className="text-gray-600 leading-relaxed">
Complete your profile to get started with CodeUnia. This will only take a moment.
Complete your profile to get started with Codeunia. This will only take a moment.
</p>
</div>

Expand All @@ -313,11 +310,7 @@ function CompleteProfileContent() {
{/* First Name */}
<div className="space-y-2">
<label className="block text-sm font-semibold text-gray-700">
First Name * {oauthProvider && firstName && (
<span className="text-xs text-green-600 font-normal">
(pre-filled from {oauthProvider})
</span>
)}
First Name *
</label>
<input
type="text"
Expand All @@ -332,11 +325,7 @@ function CompleteProfileContent() {
{/* Last Name */}
<div className="space-y-2">
<label className="block text-sm font-semibold text-gray-700">
Last Name * {oauthProvider && lastName && (
<span className="text-xs text-green-600 font-normal">
(pre-filled from {oauthProvider})
</span>
)}
Last Name *
</label>
<input
type="text"
Expand Down Expand Up @@ -480,7 +469,7 @@ function CompleteProfileContent() {
{/* Footer */}
<div className="mt-8 pt-6 border-t border-gray-200">
<p className="text-sm text-gray-700 text-center leading-relaxed">
By continuing, you agree to CodeUnia&apos;s{' '}
By continuing, you agree to Codeunia&apos;s{' '}
<Link href="/terms" className="text-blue-600 hover:text-blue-700 hover:underline transition-colors font-medium">Terms of Service</Link>
{' '}and{' '}
<Link href="/privacy" className="text-blue-600 hover:text-blue-700 hover:underline transition-colors font-medium">Privacy Policy</Link>
Expand Down
Loading