ordering-ui-react-native 0.22.30 → 0.22.31
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
|
@@ -165,14 +165,16 @@ const MapViewComponent = (props: MapViewParams) => {
|
|
|
165
165
|
size={50}
|
|
166
166
|
color={theme.colors.primary}
|
|
167
167
|
/>
|
|
168
|
-
|
|
169
|
-
<
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
168
|
+
{(!!marker?.customer?.photo || !!marker?.business?.logo) && (
|
|
169
|
+
<View style={styles.view}>
|
|
170
|
+
<OIcon
|
|
171
|
+
style={styles.image}
|
|
172
|
+
src={{ uri: customer ? marker?.customer?.photo : marker?.business?.logo }}
|
|
173
|
+
width={25}
|
|
174
|
+
height={25}
|
|
175
|
+
/>
|
|
176
|
+
</View>
|
|
177
|
+
)}
|
|
176
178
|
<Callout
|
|
177
179
|
onPress={() => !!orderIds && orderIds.toString().includes(',') ? onNavigationRedirect('Orders') : onNavigationRedirect('OrderDetails', { order: marker })}
|
|
178
180
|
>
|
|
@@ -193,8 +195,8 @@ const MapViewComponent = (props: MapViewParams) => {
|
|
|
193
195
|
{((customer && marker?.customer?.city?.address_notes) || !customer) && (
|
|
194
196
|
<OText>{customer ? marker?.customer?.city?.address_notes : marker?.business?.city?.name}</OText>
|
|
195
197
|
)}
|
|
196
|
-
{((customer && marker?.business?.zipcode) || (!customer && marker?.business?.zipcode)) && (
|
|
197
|
-
<OText>{customer ? marker?.customer?.zipcode : marker?.business?.zipcode}</OText>
|
|
198
|
+
{((customer && !!marker?.business?.zipcode) || (!customer && !!marker?.business?.zipcode)) && (
|
|
199
|
+
<OText>{customer ? marker?.customer?.zipcode ?? '' : marker?.business?.zipcode ?? ''}</OText>
|
|
198
200
|
)}
|
|
199
201
|
{customer && !!marker?.customer?.internal_number && (
|
|
200
202
|
<OText>{marker?.customer?.internal_number}</OText>
|