Spaces:
Running

krish95's picture
Fix the product pricing logic on the website so that the correct price is shown based on the selected validity option from the dropdown. Each product object contains Notion fields: - Price_1M - Price_3M - Price_6M Bind the selected validity from the dropdown to dynamically show the correct price. Use this logic in the code: ```js function getPriceByValidity(product, validity) { if (validity === "1 Month") return product.Price_1M; if (validity === "3 Months") return product.Price_3M; if (validity === "6 Months") return product.Price_6M; return "Not available"; } - Follow Up Deployment
ef9e54e verified