Skip to content

Commit

Permalink
fix(#147): 프로필 매너랭크 값 제대로 들어가도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yyypearl committed Oct 30, 2024
1 parent 1ea2ba3 commit 304ad14
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/app/user/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const UserProfilePage = () => {
try {
const response = await getOtherProfile(Number(id));
setOtherProfile(response.result);
console.log(response);
} catch (error) {
console.error(error);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/MannerLevelBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const levelColors = [

interface MannerLevelBarProps {
recentLevel: number;
mannerRank?: number;
mannerRank?: number | null;
isBlind?: boolean;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/user/UserProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const UserProfile = ({
</Text>
<MannerLevelBar
recentLevel={manner.mannerLevel}
mannerRank={manner.mannerRank}
mannerRank={profile.mannerRank || null}
/>
</Box>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/interface/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface User {
tier: string;
rank: number;
manner: number;
mannerRank?: null | number;
mannerRank: null | number;
mannerRatingCount?: number;
updatedAt: string;
mainP: number;
Expand Down

0 comments on commit 304ad14

Please sign in to comment.