ordering-ui-react-native 0.23.49 → 0.23.51

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.49",
3
+ "version": "0.23.51",
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}
@@ -19,6 +19,8 @@ export const OrderHistory = (props: any) => {
19
19
  const [{ parseDate }] = useUtils()
20
20
  const [{ configs }] = useConfig();
21
21
  const theme = useTheme()
22
+
23
+ const excludedMessages = ['manual_driver_assignment_comment', 'driver_group_id', 'manual_driver_assignment_author_id']
22
24
  const changeIdToExternalId = configs?.change_order_id?.value === '1'
23
25
 
24
26
  const styles = StyleSheet.create({
@@ -123,7 +125,7 @@ export const OrderHistory = (props: any) => {
123
125
  </View>
124
126
  </View>
125
127
  )}
126
- {messages && messages?.messages.map((message: any, i: number) => message.type === 1 && (
128
+ {messages && messages?.messages.map((message: any, i: number) => (message.type === 1 && !excludedMessages.includes(message?.change?.attribute)) && (
127
129
  <View
128
130
  style={styles.historyItem}
129
131
  key={i}