react-native-timacare 3.1.48 → 3.1.49

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.
@@ -154,7 +154,10 @@ export const Home = observer(function Home() {
154
154
  }
155
155
  }
156
156
  }
157
- if (item?.typeLoan === 5 && item.step === 5) {
157
+ if (
158
+ (item?.typeLoan === 5 || item?.typeLoan === 6) &&
159
+ item.step === 5
160
+ ) {
158
161
  setLoan(item);
159
162
  setTimeout(() => {
160
163
  setShowModal3(true);
@@ -172,52 +175,6 @@ export const Home = observer(function Home() {
172
175
  console.log(error);
173
176
  setIsLoading(false);
174
177
  }
175
-
176
- // homeStore.getListLoanPending(
177
- // async (res) => {
178
- // setListLoan(res);
179
- // if (res) {
180
- // Promise.all(
181
- // res?.map(async (item) => {
182
- // homeStore.getCheckEKYC(
183
- // { loanBriefId: item.id },
184
- // (response) => {}
185
- // );
186
- // if (item?.productId !== 8) {
187
- // if (item?.messageErrorCIMB && item.messageErrorCIMB !== '') {
188
- // setLoanCimb(item);
189
- // setTimeout(() => {
190
- // setShowModal(true);
191
- // }, 200);
192
- // }
193
- // if (
194
- // (item?.typeLoan === 4 || item?.typeLoan === 2) &&
195
- // item?.isCimbApproveFull !== null
196
- // ) {
197
- // const checkShow = await load(`SHOW_${item?.id}`);
198
- // if (!checkShow || checkShow !== true) {
199
- // setLoanCimb(item);
200
- // setTimeout(() => {
201
- // setShowModal2(true);
202
- // }, 200);
203
- // }
204
- // }
205
- // }
206
- // if (item?.typeLoan === 5 && item.step === 5) {
207
- // setLoan(item);
208
- // setTimeout(() => {
209
- // setShowModal3(true);
210
- // }, 300);
211
- // }
212
- // })
213
- // );
214
- // }
215
- // setIsLoading(false);
216
- // },
217
- // () => {
218
- // setIsLoading(false);
219
- // }
220
- // );
221
178
  };
222
179
 
223
180
  useEffect(() => {