Encountered two list items with same key (CheckoutDeliveryOptions component)
noobCode-69 opened this issue · comments
Steps to reproduce:
- Go to the checkout page
- Choose a city that have 'ups' service available (Jaipur , India)
- Open the console you will the error.
Why
The reason is because carrier_code is used as a key , and 'ups' is carrier_code for more than one options you can see the console logs
{carrier_code: 'flatrate', method_code: 'flatrate'}
{carrier_code: 'tablerate', method_code: 'bestway'}
{carrier_code: 'ups', method_code: 'XPD'}
{carrier_code: 'ups', method_code: 'WXS'}
Expected result
No Errors
Propose solution
We can use the string combinary of carrier_code and method_code for resolve this issue
I am assigning this task to me!