diff --git a/web/src/narrow_error.ts b/web/src/narrow_error.ts index 5c7b608af1..5c611aa736 100644 --- a/web/src/narrow_error.ts +++ b/web/src/narrow_error.ts @@ -18,9 +18,9 @@ export type NarrowBannerData = { export function narrow_error(narrow_banner_data: NarrowBannerData): string { const title = narrow_banner_data.title; - const html = narrow_banner_data.html; + const notice_html = narrow_banner_data.html; const search_data = narrow_banner_data.search_data; - const empty_feed_notice = render_empty_feed_notice({title, html, search_data}); + const empty_feed_notice = render_empty_feed_notice({title, notice_html, search_data}); return empty_feed_notice; } diff --git a/web/templates/empty_feed_notice.hbs b/web/templates/empty_feed_notice.hbs index 474c7bbaa6..39b9cfa391 100644 --- a/web/templates/empty_feed_notice.hbs +++ b/web/templates/empty_feed_notice.hbs @@ -13,9 +13,9 @@ {{/each}} {{/if}} - {{else if html}} + {{else if notice_html}}
- {{{ html }}} + {{{ notice_html }}}
{{/if}} diff --git a/web/tests/message_view.test.cjs b/web/tests/message_view.test.cjs index 0d4ad6a572..9ca9057842 100644 --- a/web/tests/message_view.test.cjs +++ b/web/tests/message_view.test.cjs @@ -54,10 +54,10 @@ mock_esm("../src/spectators", { login_to_access() {}, }); -function empty_narrow_html(title, html, search_data) { +function empty_narrow_html(title, notice_html, search_data) { const opts = { title, - html, + notice_html, search_data, }; return require("../templates/empty_feed_notice.hbs")(opts);