adrianhajdin / project_e_commerce

This is a code repository for the corresponding video tutorial. In this video, we're going to build a fully functional eCommerce application using commerce.js.
https://jsmastery.pro
1.88k stars 507 forks source link

it is in Review #75

Open Hinakouser118 opened 1 year ago

Hinakouser118 commented 1 year ago

Cannot read properties of undefined (reading 'line_items') TypeError: Cannot read properties of undefined (reading 'line_items') at Review

Hinakouser118 commented 1 year ago

any one can say me

RochaThomas commented 1 year ago

Visit this post: #63

prg6useless commented 1 year ago

if im right, this error persists in either the PaymentForm.jsx or Review.jsx. Im pretty sure the error is refering to the checkoutToken.live.line_items, this property of the object does not exist. Change it to checkoutToken.line_items. Change other lines too like checkoutToken.live.subtotal.formatted_with_symbol to checkoutToken.subtotal.formatted_with_symbol. Hope this helps 👍 .