mod-build 4.0.53 → 4.0.54-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/scripts/utils.js +6 -0
package/package.json
CHANGED
package/src/scripts/utils.js
CHANGED
|
@@ -186,6 +186,9 @@ export const handlebarsHelpers = [
|
|
|
186
186
|
{
|
|
187
187
|
name: 'addTcpaAboveCta',
|
|
188
188
|
fn: function(page) {
|
|
189
|
+
if (!page || !page.primary_trade) {
|
|
190
|
+
return false;
|
|
191
|
+
}
|
|
189
192
|
const trade = page.primary_trade.toUpperCase();
|
|
190
193
|
return trade === 'SOLAR' || trade === 'HOME_SECURITY' || page.isBranded;
|
|
191
194
|
}
|
|
@@ -193,6 +196,9 @@ export const handlebarsHelpers = [
|
|
|
193
196
|
{
|
|
194
197
|
name: 'addTcpaBelowCta',
|
|
195
198
|
fn: function(page) {
|
|
199
|
+
if (!page || !page.primary_trade) {
|
|
200
|
+
return false;
|
|
201
|
+
}
|
|
196
202
|
const trade = page.primary_trade.toUpperCase();
|
|
197
203
|
return trade !== 'SOLAR' && trade !== 'HOME_SECURITY' && !page.isBranded;
|
|
198
204
|
}
|