From f1de7a2dd1afa62c0d9e7202e5afd874b37aa567 Mon Sep 17 00:00:00 2001 From: Maria Mattlin Date: Thu, 30 Jun 2022 09:25:32 -0700 Subject: [PATCH] PROD-2325 #comment Fixed the reference to the form data when calculating pricing #time 20m --- src/utils/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/index.js b/src/utils/index.js index 8b7e48fa7..ede6415db 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -117,7 +117,7 @@ export function getDataExplorationPriceAndTimelineEstimate() { }; } -export function getWebsiteDesignPriceAndTimelineEstimate() { +export function getWebsiteDesignPriceAndTimelineEstimate() { const total = workPriceDesign.getPrice(workPriceDesign); return { total, @@ -187,8 +187,8 @@ export function getFindMeDataPriceAndTimelineEstimate() { } export function getDynamicPriceAndTimelineEstimate(formData) { - const numOfPages = formData?.pageDetails?.pages?.length || 1 - const numOfDevices = formData?.basicInfo?.selectedDevice.option.length || 1 + const numOfPages = formData?.form?.pageDetails?.pages?.length || 1 + const numOfDevices = formData?.form?.basicInfo?.selectedDevice.option.length || 1 return getDynamicPriceAndTimeline(numOfPages, numOfDevices); }