diff --git a/src/components/user/UserProfile.tsx b/src/components/user/UserProfile.tsx
index fcb404d2..c6b2995f 100644
--- a/src/components/user/UserProfile.tsx
+++ b/src/components/user/UserProfile.tsx
@@ -12,6 +12,7 @@ export interface Manner {
memberId?: number;
mannerLevel: number;
mannerRank: number;
+ mannerRatingCount?: number;
mannerKeywords: { mannerKeywordId: number; count: number }[];
}
@@ -88,14 +89,14 @@ const UserProfile = ({
매너 레벨은 겜구 사용자로부터 받은 매너평가, 비매너평가를
반영한 지표예요.
- 최근 {profile.mannerRatingCount}명의 사용자가
+ 최근 {manner.mannerRatingCount}명의 사용자가
{` `}
{profile.gameName}
{` `}님에게 긍정적 매너 평가를 남겼어요.
diff --git a/src/data/profile/default.ts b/src/data/profile/default.ts
index cc596746..28f06602 100644
--- a/src/data/profile/default.ts
+++ b/src/data/profile/default.ts
@@ -11,9 +11,6 @@ export const DEFAULT_PROFILE = {
freeTier: "UNRANKED",
soloRank: 3,
freeRank: 0,
- mannerLevel: 4,
- mannerRank: 15,
- mannerRatingCount: 4,
updatedAt: "",
mainP: "ANY" as Position,
subP: "ANY" as Position,
@@ -57,57 +54,58 @@ export const DEFAULT_PROFILE = {
};
export const DEFAULT_MANNER = {
- memberId: 0,
- mannerLevel: 4,
- mannerRank: 15,
- mannerKeywords: [
- {
- mannerKeywordId: 1,
- count: 0,
- },
- {
- mannerKeywordId: 2,
- count: 0,
- },
- {
- mannerKeywordId: 3,
- count: 0,
- },
- {
- mannerKeywordId: 4,
- count: 0,
- },
- {
- mannerKeywordId: 5,
- count: 0,
- },
- {
- mannerKeywordId: 6,
- count: 0,
- },
- {
- mannerKeywordId: 7,
- count: 0,
- },
- {
- mannerKeywordId: 8,
- count: 0,
- },
- {
- mannerKeywordId: 9,
- count: 0,
- },
- {
- mannerKeywordId: 10,
- count: 0,
- },
- {
- mannerKeywordId: 11,
- count: 0,
- },
- {
- mannerKeywordId: 12,
- count: 0,
- },
- ],
+ memberId: 0,
+ mannerLevel: 4,
+ mannerRank: 15,
+ mannerRatingCount: 4,
+ mannerKeywords: [
+ {
+ mannerKeywordId: 1,
+ count: 0,
+ },
+ {
+ mannerKeywordId: 2,
+ count: 0,
+ },
+ {
+ mannerKeywordId: 3,
+ count: 0,
+ },
+ {
+ mannerKeywordId: 4,
+ count: 0,
+ },
+ {
+ mannerKeywordId: 5,
+ count: 0,
+ },
+ {
+ mannerKeywordId: 6,
+ count: 0,
+ },
+ {
+ mannerKeywordId: 7,
+ count: 0,
+ },
+ {
+ mannerKeywordId: 8,
+ count: 0,
+ },
+ {
+ mannerKeywordId: 9,
+ count: 0,
+ },
+ {
+ mannerKeywordId: 10,
+ count: 0,
+ },
+ {
+ mannerKeywordId: 11,
+ count: 0,
+ },
+ {
+ mannerKeywordId: 12,
+ count: 0,
+ },
+ ],
};
\ No newline at end of file
diff --git a/src/interface/profile.ts b/src/interface/profile.ts
index ebc1887a..cbaa710d 100644
--- a/src/interface/profile.ts
+++ b/src/interface/profile.ts
@@ -24,9 +24,9 @@ export interface User {
freeTier: string;
soloRank: number;
freeRank: number;
- mannerLevel: number;
- mannerRank?: null | number;
- mannerRatingCount?: number;
+ // mannerLevel: number;
+ // mannerRank?: null | number;
+ // mannerRatingCount?: number;
updatedAt: string;
mainP: Position;
subP: Position;
diff --git a/src/redux/slices/userSlice.ts b/src/redux/slices/userSlice.ts
index 9b3cf296..604e83c3 100644
--- a/src/redux/slices/userSlice.ts
+++ b/src/redux/slices/userSlice.ts
@@ -14,8 +14,8 @@ interface UserState {
freeTier: string;
soloRank: number;
freeRank: number;
- mannerRank: number;
- mannerLevel: number;
+ // mannerRank: number;
+ // mannerLevel: number;
updatedAt: string;
mainP: Position;
subP: Position;
@@ -43,12 +43,12 @@ const initialState: UserState = {
freeTier: "",
soloRank: 0,
freeRank: 0,
- mannerRank: 0,
- mannerLevel: 0,
+ // mannerRank: 0,
+ // mannerLevel: 0,
updatedAt: "",
mainP: "ANY",
subP: "ANY",
- wantP: ["ANY", "ANY"],
+ wantP: [],
isAgree: false,
isBlind: false,
loginType: "",
@@ -91,12 +91,12 @@ export const userSlice = createSlice({
state.freeTier = '';
state.soloRank = 0;
state.freeRank = 0;
- state.mannerRank = 0;
- state.mannerLevel = 0;
+ // state.mannerRank = 0;
+ // state.mannerLevel = 0;
state.updatedAt = '';
state.mainP = "ANY";
state.subP = "ANY";
- state.wantP = ["ANY", "ANY"];
+ state.wantP = [];
state.isAgree = false;
state.isBlind = false;
state.loginType = '';
diff --git a/src/types/api/user/profile/get.d.ts b/src/types/api/user/profile/get.d.ts
index e06c7fb2..7ffaf35d 100644
--- a/src/types/api/user/profile/get.d.ts
+++ b/src/types/api/user/profile/get.d.ts
@@ -12,8 +12,6 @@ interface BaseProfileData {
freeTier: string;
soloRank: number;
freeRank: number;
- mannerRank: number;
- mannerLevel: number;
updatedAt: string;
mainP: Position;
subP: Position;
@@ -32,7 +30,6 @@ export interface GetMyProfileData extends BaseProfileData {
}
export interface GetOtherProfileData extends BaseProfileData {
- mannerRatingCount: number;
blocked: boolean;
friend: boolean;
friendRequestMemberId: number;
diff --git a/src/types/api/user/profile/put.d.ts b/src/types/api/user/profile/put.d.ts
index 57038d04..f6730edd 100644
--- a/src/types/api/user/profile/put.d.ts
+++ b/src/types/api/user/profile/put.d.ts
@@ -4,7 +4,7 @@ import { ApiResponse } from "../../api";
interface PutPositionRequest {
mainP: Position;
subP: Position;
- wantP: Position[];
+ wantP: (Position|null)[];
}
export interface PutProfileData {