diff --git a/apps/native/app/src/screens/document-detail/document-detail.tsx b/apps/native/app/src/screens/document-detail/document-detail.tsx index 709b06934fa6..e88c3deae612 100644 --- a/apps/native/app/src/screens/document-detail/document-detail.tsx +++ b/apps/native/app/src/screens/document-detail/document-detail.tsx @@ -374,13 +374,14 @@ export const DocumentDetailScreen: NavigationFunctionComponent<{ (isHtml ? ( tags to fix a bug in react-native that renders
with too much vertical space - // https://github.com/facebook/react-native/issues/32062 - `${htmlStyles}${Document.content?.value.replaceAll( - regexForBr, - '', - )}` ?? '', + html: Document.content?.value + ? // Removing all
tags to fix a bug in react-native that renders
with too much vertical space + // https://github.com/facebook/react-native/issues/32062 + `${htmlStyles}${Document.content?.value.replaceAll( + regexForBr, + '', + )}` + : '', }} scalesPageToFit onLoadEnd={() => { diff --git a/apps/native/app/src/screens/vehicles/vehicle-mileage.screen.tsx b/apps/native/app/src/screens/vehicles/vehicle-mileage.screen.tsx index ec360f12d7ef..e6bcd2c9ddf6 100644 --- a/apps/native/app/src/screens/vehicles/vehicle-mileage.screen.tsx +++ b/apps/native/app/src/screens/vehicles/vehicle-mileage.screen.tsx @@ -113,7 +113,7 @@ export const VehicleMileageScreen: NavigationFunctionComponent<{ }, [res.data, res.loading]) const latestMileage = - data?.[0]?.__typename !== 'Skeleton' && data[0].mileage + data?.[0]?.__typename !== 'Skeleton' && data[0]?.mileage ? // Parse mileage from string to number +data[0].mileage : 0