Skip to content

Commit

Permalink
fix: accept both lowercase and camelCase interpretationId
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Aug 18, 2023
1 parent 5fbf249 commit 18d29d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/interpretations/Interpretations.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ const Interpretations = () => {

useEffect(() => {
if (isMapLoaded) {
const urlInterpretationId = getUrlParameter('interpretationid')
// analytics interpretation component uses camelcase
const urlInterpretationId =
getUrlParameter('interpretationid') ||
getUrlParameter('interpretationId')

if (urlInterpretationId) {
dispatch(setInterpretation(urlInterpretationId))
Expand Down

0 comments on commit 18d29d3

Please sign in to comment.