mod-build 4.0.97-beta.1 → 4.0.97-beta.3
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
|
-
-
|
|
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
|
@@ -90,9 +90,9 @@ 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
|
-
field.errorMessage = 'Professionals need this info to generate a quote.';
|
|
95
|
+
field.errorMessage = field.fieldType === 'checkbox-group' ? 'Please select at least one option.' : 'Professionals need this info to generate a quote.';
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
if (field.options && Array.isArray(field.options) && field.options.length) {
|