mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Fix bug in feature settings
This commit is contained in:
@@ -110,7 +110,7 @@ const FeatureSettings = () => {
|
|||||||
imageName: feature?.image.name || '',
|
imageName: feature?.image.name || '',
|
||||||
imageSource: feature?.image.src || '',
|
imageSource: feature?.image.src || '',
|
||||||
featureType: feature?.featureType || '',
|
featureType: feature?.featureType || '',
|
||||||
price: feature?.price || 0,
|
price: feature?.price.toString() || '',
|
||||||
repo: feature?.repo || '',
|
repo: feature?.repo || '',
|
||||||
},
|
},
|
||||||
validationSchema: Yup.object().shape({
|
validationSchema: Yup.object().shape({
|
||||||
@@ -140,7 +140,7 @@ const FeatureSettings = () => {
|
|||||||
description,
|
description,
|
||||||
featureType,
|
featureType,
|
||||||
image: { name: imageName, src: imageSource },
|
image: { name: imageName, src: imageSource },
|
||||||
price,
|
price: parseFloat(price),
|
||||||
repo,
|
repo,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user