(nobug) - Ignore whatsnew when rendering snippets (#5169)
This commit is contained in:
Родитель
2e51ec4b49
Коммит
096404379f
|
@ -269,9 +269,12 @@ export class ASRouterUISurface extends React.PureComponent {
|
||||||
renderSnippets() {
|
renderSnippets() {
|
||||||
if (
|
if (
|
||||||
this.state.bundle.template === "onboarding" ||
|
this.state.bundle.template === "onboarding" ||
|
||||||
this.state.message.template === "fxa_overlay" ||
|
[
|
||||||
this.state.message.template === "return_to_amo_overlay" ||
|
"fxa_overlay",
|
||||||
this.state.message.template === "trailhead"
|
"return_to_amo_overlay",
|
||||||
|
"trailhead",
|
||||||
|
"whatsnew_panel_message",
|
||||||
|
].includes(this.state.message.template)
|
||||||
) {
|
) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче