rerobe-js-orm 2.4.98 → 2.4.99

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.
@@ -86,7 +86,7 @@ class ProductFormState extends FormState_1.default {
86
86
  return productFactory.createProduct(this);
87
87
  }
88
88
  priceInputChangeHandler(value) {
89
- const priceValAsValNumberString = Number(value) > 0 ? String(value) : '0';
89
+ const priceValAsValNumberString = Number(value) > 0 ? String(value) : '';
90
90
  // Mutate price inputValue and valid prop
91
91
  this.fields.price.inputValue = priceValAsValNumberString;
92
92
  this.fields.price.valid = Number(value) > 0;
@@ -350,6 +350,9 @@ class Product extends Base_1.default {
350
350
  if (productType === 'Suit Jacket' || productType === 'Shirts & Blouses' || productType === 'Outerwear') {
351
351
  productType = '';
352
352
  }
353
+ if (['Blazers', 'Dresses', 'Jumpsuits', 'Skirts', 'Tops'].includes(productType)) {
354
+ productType = productType.substring(0, productType.length - 1);
355
+ }
353
356
  let result;
354
357
  if (brand.includes('Vintage')) {
355
358
  if (productType !== '') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "2.4.98",
3
+ "version": "2.4.99",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",