Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

[Crowdsourcing] Fix 2 critical errors with static turn annotations #4959

Merged
merged 2 commits into from Feb 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -15,7 +15,7 @@ function LoadingScreen() {
}

function TaskFrontend({ taskData, taskConfig, isOnboarding, onSubmit }) {
if (!taskData) {
if (!taskData || (!isOnboarding && taskData[0] === undefined)) {
return <LoadingScreen />;
}
if (isOnboarding) {
Expand Down
Expand Up @@ -170,7 +170,7 @@ var handleSubtaskSubmit = function (subtaskIndex, setIndex, numSubtasks, initial
alert('Unable to submit task due to malformed data. Please contact requester.');
return;
}
mephistoSubmit(window.workerAnswers);
mephistoSubmit({final_data: window.workerAnswers});
}
showDisableCssNextButton();
setIndex(subtaskIndex + 1);
Expand Down