From 73d8f7e73c6e9a8a336c112b1b6393f07730759d Mon Sep 17 00:00:00 2001 From: Vijay Budhram Date: Mon, 15 Sep 2025 14:18:39 -0400 Subject: [PATCH] fix(bug): Check if CMS config is present before accessing it --- packages/fxa-content-server/app/scripts/views/pair/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/fxa-content-server/app/scripts/views/pair/index.js b/packages/fxa-content-server/app/scripts/views/pair/index.js index 9838aeb3936..c7864a72b56 100644 --- a/packages/fxa-content-server/app/scripts/views/pair/index.js +++ b/packages/fxa-content-server/app/scripts/views/pair/index.js @@ -134,6 +134,7 @@ class PairIndexView extends FormView { if ( this.cmsConfig && this.cmsConfig.shared && + this.cmsConfig.shared.backgrounds && this.cmsConfig.shared.backgrounds.defaultLayout ) { // Not ideal, but the pairing page will be going away @@ -169,6 +170,7 @@ class PairIndexView extends FormView { if ( this.cmsConfig && this.cmsConfig.shared && + this.cmsConfig.shared.backgrounds && this.cmsConfig.shared.backgrounds.defaultLayout ) { const textColorClass = getTextColorClassName(