Skip to content

Commit 9873a0d

Browse files
committed
fix: Android crash heatmap
1 parent f451e3e commit 9873a0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mobile/components/OHeatMap/OHeatMap.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ export const OHeatMap: React.FC<OHeatMapProps> = React.memo(
9898
default: 50,
9999
});
100100

101+
// @dev Android crashes even with empty array.
102+
if (!locationsFromOthers?.length) return;
101103
return (
102104
<Heatmap
103105
testID={TestData.encounters.heatMapComponent}

0 commit comments

Comments
 (0)