Fix bug in feature settings

This commit is contained in:
Hazem Krimi
2021-06-21 22:23:05 +01:00
parent c03325b4b7
commit d0a335add5
+2 -2
View File
@@ -110,7 +110,7 @@ const FeatureSettings = () => {
imageName: feature?.image.name || '',
imageSource: feature?.image.src || '',
featureType: feature?.featureType || '',
price: feature?.price || 0,
price: feature?.price.toString() || '',
repo: feature?.repo || '',
},
validationSchema: Yup.object().shape({
@@ -140,7 +140,7 @@ const FeatureSettings = () => {
description,
featureType,
image: { name: imageName, src: imageSource },
price,
price: parseFloat(price),
repo,
},
},