ordering-ui-react-native 0.23.50 → 0.23.52

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.23.50",
3
+ "version": "0.23.52",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -115,7 +115,7 @@ const BusinessProductListUI = (props: any) => {
115
115
  <ScrollView
116
116
  showsVerticalScrollIndicator={false}
117
117
  style={styles.container}>
118
- {!loading && business?.categories?.length === 0 && (
118
+ {!loading && categories?.length === 0 && (
119
119
  <NotFoundSource
120
120
  content={t('NO_RESULTS_FOUND', 'Sorry, no results found')}
121
121
  image={theme.images.general.notFound}
@@ -353,7 +353,7 @@ export const UserFormDetailsUI = (props: any) => {
353
353
  isDisabled={false}
354
354
  value={
355
355
  formState?.changes[field.code] ??
356
- (user && user?.guest_id ? user?.guest_email : user[field.code]) ??
356
+ (user && user?.guest_id && field.code === 'email' ? user?.guest_email : user[field.code]) ??
357
357
  ''
358
358
  }
359
359
  onChange={(val: any) => {