basir / node-react-ecommerce

Build ECommerce Website Like Amazon By React & Node & MongoDB
https://node-react-ecommerce-app.herokuapp.com/
1.69k stars 794 forks source link

the amount not change in page cartScreen hour 3:01:59 #31

Open shneor770 opened 4 years ago

shneor770 commented 4 years ago

image <select value={item.qty} onChange={(e) => dispatch(addToCart(item.product, e.target.value))}> {[...Array(item.countInStock).keys()].map(x => <option key={x + 1} value={x + 1}>{x + 1})}

basir commented 4 years ago

push your code on github and put its link here. I run it locally to fix the issue.

shneor770 commented 4 years ago

thank you basir!!

I couldn't upload it to github because of the size.
I brought it up hereף

https://bitbucket.org/shneorbachar3131/amazona1/src/master/

basir commented 4 years ago

It is only 5 mb. Put it on github and send me the link.

shneor770 commented 4 years ago

https://github.com/shneor770/amzona

it okay??

basir commented 4 years ago

Check your code line by line with this: https://github.com/basir/node-react-ecommerce/pull/11/files You will find the difference. hint: it is cartReducer.js good luck

On Wed, Jun 3, 2020 at 3:21 PM shneor770 notifications@github.com wrote:

https://github.com/shneor770/amzona

it okay??

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/basir/node-react-ecommerce/issues/31#issuecomment-638118045, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATUFQ6R4IKWGZSL4XY3YCDRUYTMFANCNFSM4NRJY7HA .

amakrilou commented 4 years ago

Fixed 👯

Check your code line by line with this: https://github.com/basir/node-react-ecommerce/pull/11/files You will find the difference. hint: it is cartReducer.js good luck On Wed, Jun 3, 2020 at 3:21 PM shneor770 @.***> wrote: https://github.com/shneor770/amzona it okay?? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#31 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATUFQ6R4IKWGZSL4XY3YCDRUYTMFANCNFSM4NRJY7HA .

FIXED 👯

basir commented 4 years ago

sounds good

On Wed, Jun 3, 2020 at 4:27 PM André Makrilou notifications@github.com wrote:

Fixed 👯

Check your code line by line with this: https://github.com/basir/node-react-ecommerce/pull/11/files You will find the difference. hint: it is cartReducer.js good luck … <#m-7087029110440973137> On Wed, Jun 3, 2020 at 3:21 PM shneor770 @.***> wrote: https://github.com/shneor770/amzona it okay?? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#31 (comment) https://github.com/basir/node-react-ecommerce/issues/31#issuecomment-638118045>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATUFQ6R4IKWGZSL4XY3YCDRUYTMFANCNFSM4NRJY7HA .

FIXED 👯

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/basir/node-react-ecommerce/issues/31#issuecomment-638149369, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATUFQ7KG7IQAAC42YKLVSLRUY3BFANCNFSM4NRJY7HA .

shneor770 commented 4 years ago

Thank you very much basir !!! You are a champion