diff --git a/app/javascript/packs/billboard.js b/app/javascript/packs/billboard.js index 92d028e2d..41c3c7e6b 100644 --- a/app/javascript/packs/billboard.js +++ b/app/javascript/packs/billboard.js @@ -31,7 +31,7 @@ async function generateBillboard(element) { try { // When context is digest we don't show this billboard // This is a hardcoded feature which should become more dynamic later. - if (asyncUrl.includes('post_fixed_bottom') && currentParams.includes('context=digest')) { + if (asyncUrl?.includes('post_fixed_bottom') && currentParams?.includes('context=digest')) { return; }