Skip to content

Commit

Permalink
Refactor currentRoutePath declaration to use let for potential reassi…
Browse files Browse the repository at this point in the history
…gnment
  • Loading branch information
cedricdcc committed Feb 5, 2025
1 parent 42f8f77 commit da01a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/navigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from "react";
export const Navigation = (props) => {

//get the current route
const currentRoutePath = window.location.pathname;
let currentRoutePath = window.location.pathname;
console.log(currentRoutePath);

//if the end of the current route is /navigation.html then remove /navigation.html
Expand Down

0 comments on commit da01a4b

Please sign in to comment.