Skip to content

Commit

Permalink
EditTaskModal: adjust modal title for multi-task pages
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunanoordin committed Apr 25, 2024
1 parent 07a20cb commit b1c71e1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ function EditStepDialog({

const firstTask = allTasks?.[taskKeys?.[0]]
const taskName = taskNames[firstTask?.type] || '???';
const title = `Edit ${taskName} Task`;
const title = taskKeys?.length > 1
? 'Edit A Multi-Task Page'
: `Edit ${taskName} Task`;

return (
<dialog
Expand Down

0 comments on commit b1c71e1

Please sign in to comment.