@omniumretail/component-library 1.1.78 → 1.1.80

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/component-library",
3
- "version": "1.1.78",
3
+ "version": "1.1.80",
4
4
  "private": false,
5
5
  "main": "dist/bundle.js",
6
6
  "typings": "./dist/types/index",
@@ -186,13 +186,11 @@ export const CategoryResponse = React.forwardRef((props: CategoryResponse, ref)
186
186
  ...question,
187
187
  Answer: !props.addButtons
188
188
  ? values.Questions[index].Answer
189
- : typeof values.Questions[index].Answer === "object"
190
- ? [getDateToUnixInUTC(values.Questions[index].Answer?.toDate())] || undefined
191
- : Array.isArray(values.Questions[index].Answer)
192
- ? values.Questions[index].Answer
193
- : values.Questions[index].Answer
194
- ? [values.Questions[index].Answer]
195
- : [],
189
+ : Array.isArray(values.Questions[index].Answer)
190
+ ? values.Questions[index].Answer
191
+ : values.Questions[index].Answer
192
+ ? [values.Questions[index].Answer]
193
+ : [],
196
194
  Note: values.Questions[index].Note,
197
195
  IsMultipleChoise: values.Questions[index].IsMultipleChoise,
198
196
  Files: fileLists[`${selectedCategory.Data.CategoryId}_${index}`] || [], // Include files in the form data