Skip to content

Commit 1e50858

Browse files
Merge pull request #2330 from nauhil/hot-fixes
Remove V2 API from Dashboard and Profile Page
2 parents c886a58 + 9622e18 commit 1e50858

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/shared/components/ProfilePage/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ On The Web
259259
externals.map(external => (
260260
<ExternalLink
261261
data={external.data}
262-
key={external.type}
262+
key={external.type !== 'weblink'
263+
? external.type : `${external.type}-${external.data.key}`}
263264
type={external.type}
264265
/>
265266
))

src/shared/containers/Dashboard/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ function mapDispatchToProps(dispatch) {
382382
getMemberAchievements: (handle) => {
383383
const uuid = shortId();
384384
dispatch(members.getAchievementsInit(handle, uuid));
385-
dispatch(members.getAchievementsDone(handle, uuid));
385+
dispatch(members.getAchievementsV3Done(handle, uuid));
386386
},
387387
getMemberFinances: (handle, tokenV3) => {
388388
const uuid = shortId();

src/shared/containers/Profile.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function mapDispatchToProps(dispatch) {
121121
dispatch(a.getInfoInit());
122122
dispatch(a.getSkillsInit());
123123
dispatch(a.getStatsInit());
124-
dispatch(a.getAchievementsDone(handle));
124+
dispatch(a.getAchievementsV3Done(handle));
125125
dispatch(a.getExternalAccountsDone(handle));
126126
dispatch(a.getExternalLinksDone(handle));
127127
dispatch(a.getInfoDone(handle));

0 commit comments

Comments
 (0)