diff --git a/edivorce/apps/core/templates/overview.html b/edivorce/apps/core/templates/overview.html
index 411e1dcd..2807a947 100644
--- a/edivorce/apps/core/templates/overview.html
+++ b/edivorce/apps/core/templates/overview.html
@@ -46,7 +46,7 @@
{% elif step_status.your_separation == 'Complete' %} {% endif %}
- {% if 'Spousal support' in want_which_orders|load_json %}
+ {% if 'Spousal support' in which_orders.0.value|load_json %}
Step 6
Spousal support
@@ -55,7 +55,7 @@
{% endif %}
- {% if 'Division of property and debts' in want_which_orders|load_json %}
+ {% if 'Division of property and debts' in which_orders.0.value|load_json %}
Step {% step_order step="property" %}
Property and debt
@@ -64,7 +64,7 @@
{% endif %}
- {% if 'Other orders' in want_which_orders|load_json %}
+ {% if 'Other orders' in which_orders.0.value|load_json %}
Step {% step_order step="other_orders" %}
Other orders
diff --git a/edivorce/apps/core/templatetags/step_order.py b/edivorce/apps/core/templatetags/step_order.py
index 50ad1bfa..6a8de013 100644
--- a/edivorce/apps/core/templatetags/step_order.py
+++ b/edivorce/apps/core/templatetags/step_order.py
@@ -73,7 +73,7 @@ def __parse_json_which_orders_selected(context):
# for the review page, responses are nested in a special format
which_orders = context.get('which_orders', None)
- if which_orders is not None:
+ if which_orders is not None and len(which_orders) >= 1:
want_which_orders = which_orders[0]["value"]
if want_which_orders is None:
want_which_orders = json.loads('[]')
diff --git a/edivorce/apps/core/views/main.py b/edivorce/apps/core/views/main.py
index 8cf64ff9..46faab49 100644
--- a/edivorce/apps/core/views/main.py
+++ b/edivorce/apps/core/views/main.py
@@ -141,10 +141,11 @@ def overview(request):
"""
user = __get_bceid_user(request)
responses_dict_by_step = get_responses_from_db_grouped_by_steps(user)
- # step status dictionary
- status_dict = {'step_status': get_step_status(responses_dict_by_step),
- 'active_page': 'overview'}
- return render(request, 'overview.html', context=status_dict)
+ responses_dict_by_step['active_page'] = 'overview'
+
+ # Add step status dictionary
+ responses_dict_by_step['step_status'] = get_step_status(responses_dict_by_step)
+ return render(request, 'overview.html', context=responses_dict_by_step)
def __get_bceid_user(request):