diff --git a/src/app/(auth)/login/page.tsx b/src/app/(auth)/login/page.tsx
index 9f42012..d25127e 100644
--- a/src/app/(auth)/login/page.tsx
+++ b/src/app/(auth)/login/page.tsx
@@ -282,15 +282,6 @@ export default function LoginPage() {
>
-
- {/* Facebook */}
-
{/* Don't Have Account */}
diff --git a/src/app/(auth)/signup/page.tsx b/src/app/(auth)/signup/page.tsx
index 94be6e0..10514ff 100644
--- a/src/app/(auth)/signup/page.tsx
+++ b/src/app/(auth)/signup/page.tsx
@@ -345,15 +345,6 @@ export default function SignUpPage() {
>
-
- {/* Facebook */}
-
>
);
diff --git a/src/app/(user)/user/profiles/page.tsx b/src/app/(user)/user/profiles/page.tsx
index 55540c1..ea95955 100644
--- a/src/app/(user)/user/profiles/page.tsx
+++ b/src/app/(user)/user/profiles/page.tsx
@@ -120,8 +120,12 @@ function ProfileCard({ profile, resolvedAvatarUrl }: ProfileCardProps) {
let cityValue: string | null = null;
let stateValue: string | null = null;
- // Helper to format snake_case to Title Case
- const formatValue = (v: string) => v.split('_').map(w => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()).join(' ');
+ // Helper to format snake_case to Title Case, with uppercase for 2-letter state codes
+ const formatValue = (v: string) => {
+ const trimmed = v.trim();
+ if (/^[a-z]{2}$/i.test(trimmed)) return trimmed.toUpperCase();
+ return trimmed.split('_').map(w => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()).join(' ');
+ };
// First, check fieldValues for state and city (dynamic profile fields)
if (profile.fieldValues && profile.fieldValues.length > 0) {
@@ -131,7 +135,6 @@ function ProfileCard({ profile, resolvedAvatarUrl }: ProfileCardProps) {
if (stateField && stateField.jsonValue) {
const value = stateField.jsonValue;
if (Array.isArray(value) && value.length > 0) {
- // For multiselect, join all selected values
stateValue = value.map(v => formatValue(String(v))).join(', ');
} else if (typeof value === 'string' && value.trim()) {
stateValue = formatValue(value);
diff --git a/src/utils/profileDataMapper.ts b/src/utils/profileDataMapper.ts
index c10d77d..61906a3 100644
--- a/src/utils/profileDataMapper.ts
+++ b/src/utils/profileDataMapper.ts
@@ -337,7 +337,10 @@ export function mapFieldValuesToAvailability(fieldValues: FieldValueResponse[]):
* Helper to format snake_case values to Title Case
*/
function formatSnakeCaseToTitleCase(value: string): string {
- return value
+ const trimmed = value.trim();
+ // 2-letter state abbreviation: uppercase both letters
+ if (/^[a-z]{2}$/i.test(trimmed)) return trimmed.toUpperCase();
+ return trimmed
.split('_')
.map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
.join(' ');