mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-11 03:40:20 +00:00
Fix all existing prettier issues
This commit is contained in:
@@ -17,13 +17,10 @@ export default class extends Controller {
|
||||
});
|
||||
// but not the one we want ie. the one that matches the shipping method id
|
||||
this.shippingMethodDescriptionTargets.find(
|
||||
(e) => e.dataset["shippingmethodid"] == input.value
|
||||
(e) => e.dataset["shippingmethodid"] == input.value,
|
||||
).style.display = "block";
|
||||
// -- Require a ship address
|
||||
if (
|
||||
input.dataset.requireaddress === "true" &&
|
||||
!this.shippingAddressCheckboxTarget.checked
|
||||
) {
|
||||
if (input.dataset.requireaddress === "true" && !this.shippingAddressCheckboxTarget.checked) {
|
||||
this.shippingMethodAddressTarget.style.display = "block";
|
||||
} else {
|
||||
this.shippingMethodAddressTarget.style.display = "none";
|
||||
|
||||
Reference in New Issue
Block a user