From d0a335add5101b8bc03674cb231acd2b7deb0a06 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Mon, 21 Jun 2021 22:23:05 +0100 Subject: [PATCH] Fix bug in feature settings --- src/pages/FeatureSettings/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/FeatureSettings/index.tsx b/src/pages/FeatureSettings/index.tsx index c084d64..8eb8bd8 100644 --- a/src/pages/FeatureSettings/index.tsx +++ b/src/pages/FeatureSettings/index.tsx @@ -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, }, },