Skip to content

Commit bc33e76

Browse files
tests fix
1 parent d55912f commit bc33e76

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/shared/components/challenge-detail/Submissions/SubmissionRow/index.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,10 @@ export default function SubmissionRow({
7979
{rating || '-'}
8080
</span>
8181
<a
82-
styleName="col"
8382
href={`${window.origin}/members/${member}`}
8483
target={`${_.includes(window.origin, 'www') ? '_self' : '_blank'}`}
8584
rel="noopener noreferrer"
86-
styleName={`level-${getRatingLevel(rating)}`}
85+
styleName={`col level-${getRatingLevel(rating)}`}
8786
>
8887
{member || '-'}
8988
</a>

src/shared/components/challenge-detail/Submissions/index.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import React from 'react';
77
import PT from 'prop-types';
88
import moment from 'moment';
99
import { isMM as checkIsMM } from 'utils/challenge';
10-
import { getRatingLevel } from 'utils/tc';
1110
import _ from 'lodash';
1211
import { connect } from 'react-redux';
1312
import { config } from 'topcoder-react-utils';
@@ -19,7 +18,7 @@ import { PrimaryButton } from 'topcoder-react-ui-kit';
1918
import sortList from 'utils/challenge-detail/sort';
2019
import challengeDetailsActions from 'actions/page/challenge-details';
2120
import LoadingIndicator from 'components/LoadingIndicator';
22-
import { goToLogin } from 'utils/tc';
21+
import { goToLogin, getRatingLevel } from 'utils/tc';
2322
import Lock from '../icons/lock.svg';
2423
import SubmissionRow from './SubmissionRow';
2524
import SubmissionInformationModal from './SubmissionInformationModal';
@@ -708,7 +707,7 @@ class SubmissionsComponent extends React.Component {
708707
<div key={s.createdBy + s.created} styleName="row">
709708
{
710709
!isF2F && !isBugHunt && (
711-
<div styleName={`col-2 level-${getRatingLevel(_.get(s.registrant, 'rating', 0))}`} >
710+
<div styleName={`col-2 level-${getRatingLevel(_.get(s.registrant, 'rating', 0))}`}>
712711
{ (s.registrant && !_.isNil(s.registrant.rating)) ? s.registrant.rating : '-'}
713712
</div>
714713
)

0 commit comments

Comments
 (0)