Skip to content

Commit

Permalink
fix(enrollment): show retry button on retry page
Browse files Browse the repository at this point in the history
  • Loading branch information
machikoyasuda committed Nov 16, 2023
1 parent 1ec947b commit d93eec9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion benefits/enrollment/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ def retry(request):
analytics.returned_retry(request)
form = forms.CardTokenizeFailForm(request.POST)
if form.is_valid():
return TemplateResponse(request, TEMPLATE_RETRY)
context = {
"retry_button": True,
}
return TemplateResponse(request, TEMPLATE_RETRY, context)
else:
analytics.returned_error(request, "Invalid retry submission.")
raise Exception("Invalid retry submission.")
Expand Down

0 comments on commit d93eec9

Please sign in to comment.