Skip to content

Commit 3778b58

Browse files
committed
fix: issue #1083
1 parent 3884bc3 commit 3778b58

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/components/ChallengeEditor/ChallengeEditor.module.scss

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@
2929
color: $tc-red;
3030
}
3131

32-
.errorMessage {
33-
text-align: left;
34-
margin-left: 60px;
35-
font-size: 25px;
36-
color: $tc-red;
37-
}
3832
}
3933

4034
.textRequired {
@@ -241,7 +235,11 @@
241235
.error {
242236
padding-right: 40px;
243237
padding-bottom: 20px;
244-
color: $tc-red
238+
color: $tc-red;
239+
240+
.errorMessage {
241+
font-size: 25px;
242+
}
245243
}
246244

247245
.actionButtons {

src/components/ChallengeEditor/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,13 +1181,14 @@ class ChallengeEditor extends Component {
11811181
if (failedToLoad) {
11821182
return (
11831183
<div className={styles.wrapper}>
1184-
<div className={styles.title}>{errorMessage ? <div className={styles.errorMessage}>{`Error : ${errorMessage}`}</div> : 'There was an error loading the challenge'}</div>
1184+
<div className={styles.title}>There was an error loading the challenge</div>
11851185
<br />
11861186
<div className={styles.container}>
11871187
<div className={styles.formContainer}>
11881188
<div className={styles.group}>
11891189
<div className={styles.row}>
11901190
<div className={styles.error}>
1191+
{errorMessage && <div className={styles.errorMessage}>{`Error : ${errorMessage}`}</div>}
11911192
Please try again later and if the issue persists contact us at&nbsp;
11921193
<a href='mailto:support@topcoder.com'>support@topcoder.com</a>
11931194
&nbsp;to resolve the issue as soon as possible.

0 commit comments

Comments
 (0)