ordering-ui-react-native 0.18.98 → 0.18.99

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.18.98",
3
+ "version": "0.18.99",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -309,10 +309,11 @@ const BusinessProductsListUI = (props: BusinessProductsListParams) => {
309
309
  ? t('SEARCH_REDIRECT', 'Go to Businesses')
310
310
  : t('CLEAR_FILTERS', 'Clear filters')
311
311
  }
312
- onClickButton={() =>
312
+ onClickButton={!businessSingleId ? () =>
313
313
  !searchValue
314
314
  ? handleSearchRedirect && handleSearchRedirect()
315
315
  : handleCancelSearch && handleCancelSearch()
316
+ : null
316
317
  }
317
318
  />
318
319
  </WrapperNotFound>