Skip to content
Snippets Groups Projects
Commit e101db00 authored by Tom Robinson's avatar Tom Robinson
Browse files

Don't show 'next step' section if there is no next step

parent 6b5c2317
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,9 @@ export default class SettingsSetupList extends Component {
<LoadingAndErrorWrapper loading={!this.state.tasks} error={this.state.error} >
{ () =>
<div style={{maxWidth: 468}}>
<TaskSection name="Recommended next step" tasks={[nextTask]} />
{ nextTask &&
<TaskSection name="Recommended next step" tasks={[nextTask]} />
}
{
tasks.map((section, index) =>
<TaskSection {...section} key={index} />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment