Skip to content

Commit

Permalink
TasksPage: add TODO note on task questions/instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunanoordin committed Oct 11, 2023
1 parent 0ddbc45 commit b13cbc1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/pages/lab-pages-editor/components/TasksPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ function StepItem({ task, taskKey }) {
const stepKey = 'TODO';
if (!task || !taskKey) return null;

const text = task.instruction;
// TODO: use Panoptes Translations API.
// e.g. pull from workflow.strings['tasks.T0.instruction']
// Task.instruction/question isn't particularly standardised across different task types.
const text = task.instruction || task.question || '';

return (
<li className="step-item">
Expand Down

0 comments on commit b13cbc1

Please sign in to comment.