The repo for Purrform's main BigCommerce store.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: remove debug data from diet builder results (#56)

authored by

Rogerio Romao and committed by
GitHub
3bc9c2ed afeca697

+1 -30
-29
assets/js/theme/custom/diet-builder.js
··· 1261 1261 } 1262 1262 1263 1263 renderResultsStep() { 1264 - const previewPayload = { 1265 - catName: this.state.catName, 1266 - calculatedRDA: this.state.calculatedRDA, 1267 - recommendedProductsCount: this.state.recommendedProducts.length, 1268 - productsForKlaviyoCount: this.state.productsForKlaviyo.length, 1269 - recommendedProducts: this.state.recommendedProducts.map((p) => ({ 1270 - name: p.name, 1271 - image: p.image, 1272 - price: p.price, 1273 - path: `https://www.purrform.co.uk${p.path}`, 1274 - gramsPerDay: p.gramsPerDay, 1275 - pricePerDay: p.pricePerDay, 1276 - })), 1277 - productsForKlaviyo: this.state.productsForKlaviyo.map((p) => ({ 1278 - name: p.name, 1279 - image: p.image, 1280 - price: p.price, 1281 - path: `https://www.purrform.co.uk${p.path}`, 1282 - gramsPerDay: p.gramsPerDay, 1283 - pricePerDay: p.pricePerDay, 1284 - ingredients: p.customFields?.Ingredients ?? [], 1285 - })), 1286 - }; 1287 - 1288 1264 const backBtn = el( 1289 1265 'button', 1290 1266 { ··· 1326 1302 'Submit', 1327 1303 ), 1328 1304 ), 1329 - ), 1330 - el( 1331 - 'pre', 1332 - { className: 'diet-builder-results-step__debug' }, 1333 - JSON.stringify(previewPayload, null, 2), 1334 1305 ), 1335 1306 ); 1336 1307
+1 -1
config.json
··· 1 1 { 2 - "name": "fix focus styles", 2 + "name": "diet-builder remove data preview", 3 3 "version": "6.10.0", 4 4 "template_engine": "handlebars_v4", 5 5 "meta": {