ordering-ui-react-native 0.17.34 → 0.17.35
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/package.json
CHANGED
|
@@ -52,7 +52,8 @@ export const BusinessListingSearchUI = (props: BusinessSearchParams) => {
|
|
|
52
52
|
brandList,
|
|
53
53
|
onNavigationRedirect,
|
|
54
54
|
handleUpdateBusinessList,
|
|
55
|
-
handleUpdateProducts
|
|
55
|
+
handleUpdateProducts,
|
|
56
|
+
brandId
|
|
56
57
|
} = props
|
|
57
58
|
|
|
58
59
|
const screenHeight = Dimensions.get('window').height;
|
|
@@ -253,6 +254,7 @@ export const BusinessListingSearchUI = (props: BusinessSearchParams) => {
|
|
|
253
254
|
onNavigationRedirect={onNavigationRedirect}
|
|
254
255
|
BusinessControllerSkeletons={BusinessControllerSkeletons}
|
|
255
256
|
businessPaginationProps={paginationProps}
|
|
257
|
+
franchiseId={brandId}
|
|
256
258
|
/>
|
|
257
259
|
)}
|
|
258
260
|
|
|
@@ -186,7 +186,7 @@ const BusinessesListingUI = (props: BusinessesListingParams) => {
|
|
|
186
186
|
paginationProps.totalPages === paginationProps.currentPage
|
|
187
187
|
);
|
|
188
188
|
|
|
189
|
-
if (y + PIXELS_TO_SCROLL > height && !businessesList.loading && hasMore) {
|
|
189
|
+
if (y + PIXELS_TO_SCROLL > height && !businessesList.loading && hasMore && businessesList?.businesses?.length > 0) {
|
|
190
190
|
getBusinesses();
|
|
191
191
|
}
|
|
192
192
|
};
|