Skip to content

Commit

Permalink
fix: open MS popup from DD eq click on cum. plot
Browse files Browse the repository at this point in the history
  • Loading branch information
shaefner-usgs committed Apr 6, 2023
1 parent befedbe commit f684830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/htdocs/js/features/util/earthquakes/Plots.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,8 @@ var Plots = function (options) {

// The first/last point on cumulative aftershocks/historical curve is Mainshock
if (id === 'cumulative' &&
(featureId === 'aftershocks' && index === 0) ||
(featureId === 'historical' && index === count)
(featureId.includes('aftershocks') && index === 0) ||
(featureId.includes('historical') === count)
) {
featureId = 'mainshock';
}
Expand Down

0 comments on commit f684830

Please sign in to comment.