Skip to content

Commit 0221a23

Browse files
committed
Use empty text delcaration markdown preview
The declaration markdown preview should show the new text when there is no content to preview.
1 parent 07b9de8 commit 0221a23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/forms/declaration_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def declaration_input_params
3939
end
4040

4141
def preview_html(declaration_input)
42-
return t("guidance.no_guidance_added_html") if declaration_input.declaration_markdown.blank?
42+
return t("markdown_editor.no_markdown_content_html") if declaration_input.declaration_markdown.blank?
4343

4444
GovukFormsMarkdown.render(declaration_input.declaration_markdown, allow_headings: false)
4545
end

0 commit comments

Comments
 (0)