Skip to content

Commit 32549a3

Browse files
authored
Merge pull request Expensify#68802 from Eskalifer1/fix/68051
fix:68051: Rerender map after being online again
2 parents b41a476 + 97fef6a commit 32549a3

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

src/components/MapView/MapView.website.tsx

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,19 @@ const MapView = forwardRef<MapViewHandle, MapViewProps>((props, ref) => {
4242
}
4343
>
4444
<Suspense fallback={<FullScreenLoadingIndicator />}>
45-
<MapViewImpl
46-
ref={ref}
47-
// eslint-disable-next-line react/jsx-props-no-spreading
48-
{...props}
49-
/>
45+
{!isOffline ? (
46+
<MapViewImpl
47+
ref={ref}
48+
// eslint-disable-next-line react/jsx-props-no-spreading
49+
{...props}
50+
/>
51+
) : (
52+
<PendingMapView
53+
title={translate('distance.mapPending.title')}
54+
subtitle={translate('distance.mapPending.subtitle')}
55+
style={styles.mapEditView}
56+
/>
57+
)}
5058
</Suspense>
5159
</ErrorBoundary>
5260
);

0 commit comments

Comments
 (0)