From 096404379f76a3f87a12094d70d699ea4c9b2d96 Mon Sep 17 00:00:00 2001 From: Ed Lee Date: Wed, 10 Jul 2019 17:43:13 -0700 Subject: [PATCH] (nobug) - Ignore whatsnew when rendering snippets (#5169) --- content-src/asrouter/asrouter-content.jsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/content-src/asrouter/asrouter-content.jsx b/content-src/asrouter/asrouter-content.jsx index ea3d10b10..7d4e29777 100644 --- a/content-src/asrouter/asrouter-content.jsx +++ b/content-src/asrouter/asrouter-content.jsx @@ -269,9 +269,12 @@ export class ASRouterUISurface extends React.PureComponent { renderSnippets() { if ( this.state.bundle.template === "onboarding" || - this.state.message.template === "fxa_overlay" || - this.state.message.template === "return_to_amo_overlay" || - this.state.message.template === "trailhead" + [ + "fxa_overlay", + "return_to_amo_overlay", + "trailhead", + "whatsnew_panel_message", + ].includes(this.state.message.template) ) { return null; }