From 9622e1867a0293c84eeb25e37c3bb83aa22218e3 Mon Sep 17 00:00:00 2001 From: Huan Li Date: Wed, 24 Apr 2019 19:44:41 +0800 Subject: [PATCH] Remove V2 API from Dashboard and Profile Page --- src/shared/components/ProfilePage/index.jsx | 3 ++- src/shared/containers/Dashboard/index.jsx | 2 +- src/shared/containers/Profile.jsx | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/shared/components/ProfilePage/index.jsx b/src/shared/components/ProfilePage/index.jsx index b48a3a3568..106bbb1c04 100644 --- a/src/shared/components/ProfilePage/index.jsx +++ b/src/shared/components/ProfilePage/index.jsx @@ -259,7 +259,8 @@ On The Web externals.map(external => ( )) diff --git a/src/shared/containers/Dashboard/index.jsx b/src/shared/containers/Dashboard/index.jsx index b938991a32..0a540225c3 100644 --- a/src/shared/containers/Dashboard/index.jsx +++ b/src/shared/containers/Dashboard/index.jsx @@ -382,7 +382,7 @@ function mapDispatchToProps(dispatch) { getMemberAchievements: (handle) => { const uuid = shortId(); dispatch(members.getAchievementsInit(handle, uuid)); - dispatch(members.getAchievementsDone(handle, uuid)); + dispatch(members.getAchievementsV3Done(handle, uuid)); }, getMemberFinances: (handle, tokenV3) => { const uuid = shortId(); diff --git a/src/shared/containers/Profile.jsx b/src/shared/containers/Profile.jsx index baa9543d3a..631ec4c77e 100644 --- a/src/shared/containers/Profile.jsx +++ b/src/shared/containers/Profile.jsx @@ -121,7 +121,7 @@ function mapDispatchToProps(dispatch) { dispatch(a.getInfoInit()); dispatch(a.getSkillsInit()); dispatch(a.getStatsInit()); - dispatch(a.getAchievementsDone(handle)); + dispatch(a.getAchievementsV3Done(handle)); dispatch(a.getExternalAccountsDone(handle)); dispatch(a.getExternalLinksDone(handle)); dispatch(a.getInfoDone(handle));