Skip to content

Commit b3bbc8e

Browse files
committed
fix: profilePage/tca certifications - prevent modal showing up when you click FCC link
1 parent ee02f53 commit b3bbc8e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

config/development.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ module.exports = {
55
USER_SETTINGS: '', /* No dev server is available for saved searches */
66
},
77
PLATFORM_SITE_URL: 'https://platform.topcoder-dev.com',
8+
PLATFORMUI_SITE_URL: 'https://platform-ui.topcoder-dev.com',
89
};

src/shared/components/ProfilePage/TcaCertificates/List/index.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import PT from 'prop-types';
44
import './styles.scss';
55
import CourseBadge from '../CourseBadge';
66

7+
const preventDefault = ev => ev.stopPropagation();
8+
79
const List = ({
810
certificates,
911
onClick,
@@ -26,7 +28,7 @@ const List = ({
2628
{certificate.certificationTitle}
2729
</div>
2830
<div styleName="list-item_sub">
29-
<a href={`//${certificate.providerUrl}`} target="blank" rel="noopener">
31+
<a href={`//${certificate.providerUrl}`} target="blank" rel="noopener" onClick={preventDefault}>
3032
by {certificate.provider}
3133
</a>
3234
</div>

0 commit comments

Comments
 (0)