@jingx/lottery-components-react-jsx 1.0.41 → 1.0.42
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 +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -57821,7 +57821,7 @@ function DeleteModal(_a) {
|
|
|
57821
57821
|
"X-DeviceType": "WEB"
|
|
57822
57822
|
}, token ? { Authorization: `Bearer ${token}` } : {});
|
|
57823
57823
|
useEffect(() => {
|
|
57824
|
-
if (!ticket || isSystem) return void 0;
|
|
57824
|
+
if (!ticket || isSystem || !isOpen) return void 0;
|
|
57825
57825
|
setSelectedReason(null);
|
|
57826
57826
|
const fetchReasons = async () => {
|
|
57827
57827
|
var _a2, _b2, _c;
|
|
@@ -57850,7 +57850,7 @@ function DeleteModal(_a) {
|
|
|
57850
57850
|
}
|
|
57851
57851
|
};
|
|
57852
57852
|
fetchReasons();
|
|
57853
|
-
}, [Env.REACT_APP_API_BASE_URL, Env.REACT_APP_BASIC_TOKEN, isSystem, ticket]);
|
|
57853
|
+
}, [Env.REACT_APP_API_BASE_URL, Env.REACT_APP_BASIC_TOKEN, isSystem, ticket, isOpen]);
|
|
57854
57854
|
const handleReasonChange = (option) => {
|
|
57855
57855
|
setSelectedReason(option);
|
|
57856
57856
|
if (typeof onChange === "function") {
|