ordering-ui-react-native 0.21.60 → 0.21.61

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.21.60",
3
+ "version": "0.21.61",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -357,7 +357,7 @@ const CheckoutUI = (props: any) => {
357
357
 
358
358
  useEffect(() => {
359
359
  if (cart?.products?.length === 0) {
360
- if (cart?.business?.slug) {
360
+ if (cart?.business_id !== null) {
361
361
  onNavigationRedirect('Business', { store: cart?.business?.slug, header: null, logo: null, fromMulti: props.fromMulti })
362
362
  } else {
363
363
  onNavigationRedirect('Wallets')