Skip to content

Commit 0760c78

Browse files
committed
1 parent c0c393d commit 0760c78

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/components/ChallengeEditor/index.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,15 +1576,13 @@ class ChallengeEditor extends Component {
15761576
<div className={styles.bottomContainer}>
15771577
{!isLoading && <LastSavedDisplay timeLastSaved={draftChallenge.data.updated} />}
15781578
{!isLoading && (!isActive) && (!isCompleted) && <div className={styles.buttonContainer}>
1579-
{(!preventCopilotFromActivatingTask) && (
1580-
<div className={styles.button}>
1581-
{!this.state.hasValidationErrors ? (
1582-
<PrimaryButton text={isSaving ? 'Saving...' : 'Save Draft'} type={'info'} onClick={this.createDraftHandler} />
1583-
) : (
1584-
<PrimaryButton text={'Save Draft'} type={'disabled'} />
1585-
)}
1586-
</div>
1587-
)}
1579+
<div className={styles.button}>
1580+
{!this.state.hasValidationErrors ? (
1581+
<PrimaryButton text={isSaving ? 'Saving...' : 'Save Draft'} type={'info'} onClick={this.createDraftHandler} />
1582+
) : (
1583+
<PrimaryButton text={'Save Draft'} type={'disabled'} />
1584+
)}
1585+
</div>
15881586
{
15891587
(
15901588
isDraft &&

0 commit comments

Comments
 (0)