mod-build 3.6.55 → 3.6.56-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/gulp-tasks/templates.js +2 -2
- package/package.json +1 -1
package/gulp-tasks/templates.js
CHANGED
|
@@ -231,7 +231,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
231
231
|
throw new Error(`${xhr.statusCode}: Error while fetching TCPA`);
|
|
232
232
|
}
|
|
233
233
|
const responseJson = await JSON.parse(response);
|
|
234
|
-
const finalTCPA = await company === 'Modernize' ? responseJson.tcpa.replace(/QuinStreet/g, 'Modernize') : responseJson.tcpa;
|
|
234
|
+
const finalTCPA = await (company === 'Modernize' || templatesData.useModernizeInTCPA) ? responseJson.tcpa.replace(/QuinStreet/g, 'Modernize') : responseJson.tcpa;
|
|
235
235
|
|
|
236
236
|
templatesData.tcpaText = await finalTCPA;
|
|
237
237
|
|
|
@@ -246,7 +246,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
246
246
|
if (!templatesData.doNotUseDefaultFieldConfig && !templatesData.defaultConfigCompleted) {
|
|
247
247
|
await getDefaultFormFieldConfig();
|
|
248
248
|
}
|
|
249
|
-
|
|
249
|
+
|
|
250
250
|
if (!templatesData.tcpaText && templatesData.primary_trade) {
|
|
251
251
|
await fetchTcpaFromSitegenie();
|
|
252
252
|
}
|