core: fix pretest

This commit is contained in:
undefined committed 2021-05-31 15:27:09 +08:00
1 parent b6441b853b
commit 8a647dc36a
7 files changed
+30 -23

No files matched your search

@@ -37,10 +37,11 @@ const mapDispatchToProps = (dispatch) => ({
});
},
postPretest(props) {
const req = request.post(UiContext.postPretestUrl, {
const req = request.post(UiContext.postSubmitUrl, {
lang: props.editorLang,
code: props.editorCode,
input: props.pretestInput || ' ',
pretest: true,
});
dispatch({
type: 'SCRATCHPAD_POST_PRETEST',