Skip to content

Commit

Permalink
fix: use original location if scenario does not change
Browse files Browse the repository at this point in the history
  • Loading branch information
friedjoff committed Aug 19, 2020
1 parent 9e64fc5 commit c839150
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Recommendation.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ function Recommendation({ sameAltitudinalZone }) {
} else {
const { moderate, extreme } = projectionResult;
projections = [
...(moderate.projections ? moderate.projections.slice(-1) : []),
...(extreme.projections ? extreme.projections.slice(-1) : []),
...(moderate.projections ? moderate.projections.slice(-1) : [location]),
...(extreme.projections ? extreme.projections.slice(-1) : [location]),
];
}

Expand Down

0 comments on commit c839150

Please sign in to comment.