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 <ProfileCard
name={user?.name || ""} name={user?.name || ""}
profession={user?.preference?.profession || "OTHER"}
bio={user?.bio || "None"} bio={user?.bio || "None"}
preferenceBrand={user?.preference?.preferredBrand || "OTHER"} profession={user?.preference?.profession || ""}
preferenceOS={user?.preference?.preferredOS || "OTHER"} preferenceBrand={user?.preference?.preferredBrand || ""}
preferenceOS={user?.preference?.preferredOS || ""}
budgetMax={user?.preference?.budgetMax || 0} budgetMax={user?.preference?.budgetMax || 0}
budgetMin={user?.preference?.budgetMin || 0} budgetMin={user?.preference?.budgetMin || 0}
/> />

View File

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

View File

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