Skip to content

Commit

Permalink
fix popup
Browse files Browse the repository at this point in the history
  • Loading branch information
sdevalapurkar committed Sep 28, 2021
1 parent 3959c3c commit 8e8911b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/components/map/OccurrenceFeaturePopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ export const OccurrenceFeaturePopup: React.FC<{ featureData: any }> = (props) =>
<Popup key={featureData.id} keepInView={false} autoPan={false}>
<div>{`Species: ${featureData.taxonId}`}</div>
<div>{`Lifestage: ${featureData.lifeStage}`}</div>
<div>{`Count: ${featureData.organismQuantity}`}</div>
<div>{`Count: ${
featureData.organismQuantity
? `${featureData.organismQuantity} ${featureData.organismQuantityType}`
: `${featureData.individualCount} Individuals`
}`}</div>
<div>{`Date: ${getFormattedDate(DATE_FORMAT.ShortMediumDateTimeFormat, featureData.eventDate)}`}</div>
</Popup>
);
Expand Down

0 comments on commit 8e8911b

Please sign in to comment.