Skip to content

Commit

Permalink
Switch replace to replaceAll for generating navigation buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
frett committed Mar 25, 2024
1 parent 748391e commit 6b2829e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/popups/Navigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function Navigation({ lat, lon, size = 'large' }) {
const url = useMemory((s) => s.settings.navigation[nav]?.url)
return (
<IconButton
href={url.replace('{x}', lat.toString()).replace('{y}', lon.toString())}
href={url.replaceAll('{x}', lat.toString()).replaceAll('{y}', lon.toString())}
target="_blank"
rel="noreferrer"
size={size}
Expand Down

0 comments on commit 6b2829e

Please sign in to comment.