I have issues setting an inline condition for my shipping price :
cart.shippingPrice =
country === ("France" || "United States") ? toPrice(20) : toPrice(10);
Only when I select France the condition returns 20, but I want United States to return it as well, is there a typo ?
("France" || "United States" )evaluates first, and just becomes "France". You need to checkcountry === "France" || country === "United States