mod-build 4.0.97-beta.1 → 4.0.97-beta.2

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/CHANGELOG.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## 4.0.97
4
4
 
5
- - Adding `HomeStories` to the default steps configuration in `get-default-trade-questions.js`
5
+ - Added `HomeStories` to the default steps configuration in `get-default-trade-questions.js`. Also added support for `checkbox-group` fields (to support our HomeBuddy flows).
6
6
 
7
7
  ## 4.0.96
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "4.0.97-beta.1",
3
+ "version": "4.0.97-beta.2",
4
4
  "description": "Share components for S3 sites.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -90,7 +90,7 @@ function mergeDefaultTradeQuestionsConfig(config, steps) {
90
90
  }
91
91
  }
92
92
 
93
- if (field.fieldType === 'radio') {
93
+ if (field.fieldType === 'radio' || field.fieldType === 'checkbox-group') {
94
94
  if (!field.errorMessage) {
95
95
  field.errorMessage = 'Professionals need this info to generate a quote.';
96
96
  }
@@ -159,7 +159,7 @@ function mergeDefaultTradeQuestionsConfig(config, steps) {
159
159
  }
160
160
  }
161
161
 
162
- if (field.fieldType === 'radio') {
162
+ if (field.fieldType === 'radio' || field.fieldType === 'checkbox-group') {
163
163
  if (!field.errorMessage) {
164
164
  field.errorMessage = 'Professionals need this info to generate a quote.';
165
165
  }