@pelcro/react-pelcro-js 3.5.1-beta.1 → 3.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -1
- package/dist/index.esm.js +4 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -22483,6 +22483,9 @@ const AddressSelectSubmit = ({
|
|
|
22483
22483
|
isSubmitting
|
|
22484
22484
|
}
|
|
22485
22485
|
} = React.useContext(store$5);
|
|
22486
|
+
console.log("Selected", selectedAddressId);
|
|
22487
|
+
console.log("Selected", typeof selectedAddressId);
|
|
22488
|
+
console.log("IsSubmitted", isSubmitting);
|
|
22486
22489
|
const {
|
|
22487
22490
|
t
|
|
22488
22491
|
} = useTranslation("address");
|
|
@@ -22493,7 +22496,7 @@ const AddressSelectSubmit = ({
|
|
|
22493
22496
|
});
|
|
22494
22497
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
22495
22498
|
},
|
|
22496
|
-
disabled: !selectedAddressId,
|
|
22499
|
+
disabled: selectedAddressId === "undefined" || selectedAddressId === null || !selectedAddressId,
|
|
22497
22500
|
isLoading: isSubmitting
|
|
22498
22501
|
}, otherProps), name !== null && name !== void 0 ? name : t("buttons.submit"));
|
|
22499
22502
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -22453,6 +22453,9 @@ const AddressSelectSubmit = ({
|
|
|
22453
22453
|
isSubmitting
|
|
22454
22454
|
}
|
|
22455
22455
|
} = useContext(store$5);
|
|
22456
|
+
console.log("Selected", selectedAddressId);
|
|
22457
|
+
console.log("Selected", typeof selectedAddressId);
|
|
22458
|
+
console.log("IsSubmitted", isSubmitting);
|
|
22456
22459
|
const {
|
|
22457
22460
|
t
|
|
22458
22461
|
} = useTranslation("address");
|
|
@@ -22463,7 +22466,7 @@ const AddressSelectSubmit = ({
|
|
|
22463
22466
|
});
|
|
22464
22467
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
22465
22468
|
},
|
|
22466
|
-
disabled: !selectedAddressId,
|
|
22469
|
+
disabled: selectedAddressId === "undefined" || selectedAddressId === null || !selectedAddressId,
|
|
22467
22470
|
isLoading: isSubmitting
|
|
22468
22471
|
}, otherProps), name !== null && name !== void 0 ? name : t("buttons.submit"));
|
|
22469
22472
|
};
|