react-native-timacare 0.0.21 → 0.0.22
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/lib/commonjs/screens/home/Store.js +1 -1
- package/lib/commonjs/screens/home/Store.js.flow +3 -0
- package/lib/commonjs/screens/home/Store.js.map +1 -1
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +1 -1
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/module/screens/home/Store.js +1 -1
- package/lib/module/screens/home/Store.js.map +1 -1
- package/lib/module/screens/home/index.js +1 -1
- package/lib/module/screens/home/index.js.map +1 -1
- package/lib/typescript/screens/home/Store.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/screens/home/Store.tsx +3 -0
- package/src/screens/home/index.tsx +1 -1
|
@@ -163,6 +163,7 @@ class Store extends MyStore {
|
|
|
163
163
|
onSuccess(response.data.data);
|
|
164
164
|
}
|
|
165
165
|
} else if (response.data.meta.errorCode === 404) {
|
|
166
|
+
this.listLoanPending = null;
|
|
166
167
|
Alert.alert('Thông báo', response.data.meta.errorMessage, [
|
|
167
168
|
{ text: 'Đồng ý' },
|
|
168
169
|
]);
|
|
@@ -170,10 +171,12 @@ class Store extends MyStore {
|
|
|
170
171
|
Alert.alert('Thông báo', response.data.meta.errorMessage, [
|
|
171
172
|
{ text: 'Đồng ý' },
|
|
172
173
|
]);
|
|
174
|
+
this.listLoanPending = null;
|
|
173
175
|
}
|
|
174
176
|
} else {
|
|
175
177
|
this.isLoading = false;
|
|
176
178
|
Alert.alert('Thông báo', 'Có lỗi xảy ra. Vui lòng thử lại sau!');
|
|
179
|
+
this.listLoanPending = null;
|
|
177
180
|
}
|
|
178
181
|
}
|
|
179
182
|
}
|
|
@@ -314,7 +314,7 @@ export const Home = observer(function Home() {
|
|
|
314
314
|
>
|
|
315
315
|
Danh sách đơn mới
|
|
316
316
|
</MText>
|
|
317
|
-
{
|
|
317
|
+
{homeStore.listLoanPending === null ? (
|
|
318
318
|
<View style={{ alignItems: 'center', marginTop: 20 }}>
|
|
319
319
|
<MText style={[commonStyles.textNormal]}>
|
|
320
320
|
Không có đơn vay
|