Skip to content

Commit f535656

Browse files
committed
fix lint errors
1 parent abf27b6 commit f535656

File tree

1 file changed

+5
-3
lines changed
  • src/shared/containers/challenge-detail

1 file changed

+5
-3
lines changed

src/shared/containers/challenge-detail/index.jsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ import ogQAChallenge from
6464
import ogDSChallenge from
6565
'../../../assets/images/open-graph/challenges/04-Data-Science.png';
6666
import ogMMChallenge from
67-
'../../../assets/images/open-graph/challenges/MM-Challenge.png';
67+
'../../../assets/images/open-graph/challenges/MM-Challenge.png';
6868

6969
/* A fallback image, just in case we missed some corner case. */
7070
import ogImage from
@@ -83,7 +83,7 @@ const DAY = 24 * 60 * MIN;
8383
* @return {String}
8484
*/
8585
function getOgImage(challenge) {
86-
const { legacy, tags } = challenge;
86+
const { legacy } = challenge;
8787
const { subTrack } = legacy;
8888
if (challenge.name.startsWith('LUX -')) return ogBigPrizesChallenge;
8989
if (challenge.name.startsWith('RUX -')) return ogBigPrizesChallenge;
@@ -108,7 +108,9 @@ function getOgImage(challenge) {
108108
case SUBTRACKS.TEST_SUITES:
109109
return ogQAChallenge;
110110
case SUBTRACKS.MM:
111-
if (challenge.tags && challenge.tags.indexOf(COMPETITION_TRACKS_V3.DS) !== -1) return ogDSChallenge;
111+
if (challenge.tags && challenge.tags.indexOf(COMPETITION_TRACKS_V3.DS) !== -1) {
112+
return ogDSChallenge;
113+
}
112114
return ogMMChallenge;
113115
default:
114116
}

0 commit comments

Comments
 (0)