260624_02_ENH: 사용자 상세 정보 가져오기 수정
This commit is contained in:
@@ -86,13 +86,13 @@ function AssignedUserInfo({
|
||||
type: "monitoring" | "written";
|
||||
}>) {
|
||||
const detail = user?.userDetail;
|
||||
const tel = getDetailValue(detail, ["tel", "phone", "userTel"], "-");
|
||||
const email = getDetailValue(detail, ["email", "userEmail"], "-");
|
||||
const tel = getDetailValue(detail, "userTel", "-");
|
||||
const email = getDetailValue(detail, "userEmail", "-");
|
||||
const metaValue = type === "monitoring"
|
||||
? getCodeLabel(codes, "area", getDetailValue(detail, ["area", "userArea", "region"]))
|
||||
: getCodeLabel(codes, "genre", getDetailValue(detail, ["userGenre", "genre", "reviewGenre"]));
|
||||
? getCodeLabel(codes, "area", getDetailValue(detail, "userArea"))
|
||||
: getCodeLabel(codes, "genre", getDetailValue(detail, "userGenre"));
|
||||
const metaLabel = type === "monitoring" ? "지역" : "장르";
|
||||
const hasCar = getCodeLabel(codes, "has_car", getDetailValue(detail, ["userHasCar", "has_car", "hasCar"])) || "-";
|
||||
const hasCar = getCodeLabel(codes, "has_car", getDetailValue(detail, "userHasCar")) || "-";
|
||||
|
||||
return (
|
||||
<div className="rounded-md border bg-muted/30 p-2 text-sm">
|
||||
|
||||
Reference in New Issue
Block a user