ordering-ui-react-native 0.22.15 → 0.22.16
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
|
@@ -232,7 +232,7 @@ export const BusinessControllerUI = React.memo((props: BusinessControllerParams)
|
|
|
232
232
|
</View>
|
|
233
233
|
)}
|
|
234
234
|
{!hideBusinessOffer && (
|
|
235
|
-
getBusinessOffer((business?.offers)) &&
|
|
235
|
+
!!getBusinessOffer((business?.offers)) &&
|
|
236
236
|
<OfferBox
|
|
237
237
|
isClosed={!isBusinessOpen && (configState?.configs?.preorder_status_enabled?.value === '1')}
|
|
238
238
|
isRibbon={business?.ribbon?.enabled && !!business?.ribbon?.text}
|
|
@@ -244,7 +244,7 @@ export const BusinessControllerUI = React.memo((props: BusinessControllerParams)
|
|
|
244
244
|
numberOfLines={2}
|
|
245
245
|
ellipsizeMode='tail'
|
|
246
246
|
lineHeight={13}
|
|
247
|
-
>{t('DISCOUNT', 'Discount')}{' '}{getBusinessOffer((business?.offers))
|
|
247
|
+
>{t('DISCOUNT', 'Discount')}{' '}{getBusinessOffer((business?.offers))}</OText>
|
|
248
248
|
</OfferBox>
|
|
249
249
|
)}
|
|
250
250
|
<BusinessState isRibbon={business?.ribbon?.enabled && !!business?.ribbon?.text}>
|