diff --git a/app/views/state_file/questions/return_status/edit.html.erb b/app/views/state_file/questions/return_status/edit.html.erb index 9611c9d029..b0c2e8c92f 100644 --- a/app/views/state_file/questions/return_status/edit.html.erb +++ b/app/views/state_file/questions/return_status/edit.html.erb @@ -2,7 +2,7 @@ <% content_for :card do %> <%= render @return_status %> - <% unless @error&.auto_wait %> + <% if !@error&.auto_wait || app_time.after?(Rails.configuration.state_file_end_of_in_progress_intakes) %> <%= link_to t('.download_state_return_pdf'), StateFile::Questions::SubmissionPdfsController.to_path_helper(us_state: params[:us_state], action: :show, id: EfileSubmission.where(data_source: current_intake).last), class: "button button--primary button--wide spacing-above-60" %> <% end %>