chore: set correct select default value

This commit is contained in:
Mahen 2026-02-19 11:47:46 +07:00
parent 9073c40336
commit 624b488528
3 changed files with 7 additions and 6 deletions

View File

@ -20,10 +20,10 @@ export default async function ProfileClient() {
<ProfileCard
name={user?.name || ""}
profession={user?.preference?.profession || "OTHER"}
bio={user?.bio || "None"}
preferenceBrand={user?.preference?.preferredBrand || "OTHER"}
preferenceOS={user?.preference?.preferredOS || "OTHER"}
profession={user?.preference?.profession || ""}
preferenceBrand={user?.preference?.preferredBrand || ""}
preferenceOS={user?.preference?.preferredOS || ""}
budgetMax={user?.preference?.budgetMax || 0}
budgetMin={user?.preference?.budgetMin || 0}
/>

View File

@ -16,11 +16,11 @@ export interface ModelDB {
export interface ProfileClientProps {
name: string;
bio?: string;
preferenceBrand: Brand;
preferenceOS: OS;
preferenceBrand: string;
preferenceOS: string;
budgetMin: number;
budgetMax: number;
profession: Profession;
profession: string;
id?: number;
}

View File

@ -33,6 +33,7 @@ export const professionItems = [
{ value: "DESIGNER", label: "Designer", icon: Palette },
{ value: "STUDENT", label: "Student", icon: Book },
{ value: "GAMER", label: "Gamer", icon: GamepadDirectional },
{ value: "OTHER", label: "Other", icon: LucideCircleEllipsis },
];
export const brandItems = [