@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.cjs.js
CHANGED
|
@@ -57841,7 +57841,7 @@ function DeleteModal(_a) {
|
|
|
57841
57841
|
"X-DeviceType": "WEB"
|
|
57842
57842
|
}, token ? { Authorization: `Bearer ${token}` } : {});
|
|
57843
57843
|
React.useEffect(() => {
|
|
57844
|
-
if (!ticket || isSystem) return void 0;
|
|
57844
|
+
if (!ticket || isSystem || !isOpen) return void 0;
|
|
57845
57845
|
setSelectedReason(null);
|
|
57846
57846
|
const fetchReasons = async () => {
|
|
57847
57847
|
var _a2, _b2, _c;
|
|
@@ -57870,7 +57870,7 @@ function DeleteModal(_a) {
|
|
|
57870
57870
|
}
|
|
57871
57871
|
};
|
|
57872
57872
|
fetchReasons();
|
|
57873
|
-
}, [Env.REACT_APP_API_BASE_URL, Env.REACT_APP_BASIC_TOKEN, isSystem, ticket]);
|
|
57873
|
+
}, [Env.REACT_APP_API_BASE_URL, Env.REACT_APP_BASIC_TOKEN, isSystem, ticket, isOpen]);
|
|
57874
57874
|
const handleReasonChange = (option) => {
|
|
57875
57875
|
setSelectedReason(option);
|
|
57876
57876
|
if (typeof onChange === "function") {
|