Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 26abd52

Browse files
if not custom input is given, use default sample_input for problem
1 parent e62e0d3 commit 26abd52

File tree

1 file changed

+1
-1
lines changed
  • app/pods/components/code-challenge/code-challenge-code-editor

1 file changed

+1
-1
lines changed

‎app/pods/components/code-challenge/code-challenge-code-editor/component.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export default class CodeEditor extends Component {
130130
method: "POST",
131131
data: {
132132
contentId: this.codeChallenge.get("hbContentId"),
133-
custom_input: Base64.encode(this.customInputText),
133+
custom_input: Base64.encode(this.customInputText)||this.get('problem.details.sample_input'),
134134
source: Base64.encode(this.selectedLanguage.source),
135135
language: this.selectedLanguage.code,
136136
},

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /