diff --git a/frontend/src/components/Profile-Info.js b/frontend/src/components/Profile-Info.js index 4b9b01a..e2cf3c5 100644 --- a/frontend/src/components/Profile-Info.js +++ b/frontend/src/components/Profile-Info.js @@ -54,7 +54,6 @@ export class ProfileInfo extends Component { .then(data => { this.state.games = data.games; this.state.user = data.user; - this.state.rate = data.user.lose == 0 ? (data.user.win == 0 ? 0 : 100) : Math.round((data.user.win / (data.user.lose + data.user.win)) * 100); }) @@ -128,6 +127,10 @@ export class ProfileInfo extends Component { window.history.back(); }); + this.addEvent('click', '.opNick', (event) => { + changeUrl(`/main/profile/${event.target.id}`); + }); + this.addEvent('click', '#profile-edit', () => { changeUrl(`/main/profile/${this.props.uid}/edit`); }); diff --git a/frontend/src/components/Profile-List.js b/frontend/src/components/Profile-List.js index ad11a7e..78071a7 100644 --- a/frontend/src/components/Profile-List.js +++ b/frontend/src/components/Profile-List.js @@ -9,7 +9,6 @@ export class MatchList extends Component { ${matches.map(element => { // Date 객체로 변환 const date = new Date(element.start_timestamp); - // 월, 일, 시, 분 추출 const month = date.getMonth() + 1; // getMonth()는 0부터 시작하므로 1을 더해줍니다. const day = date.getDate(); @@ -27,7 +26,7 @@ export class MatchList extends Component { VS