Skip to content

Commit

Permalink
Fix path check
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonbaeten committed Sep 16, 2024
1 parent 57e5033 commit 46e16f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usePersistence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function reducer(state: State, action: Action): State {
}

function initialState(): State {
const skillMode = window.location.pathname === SKILLS_PATH;
const skillMode = window.location.pathname.startsWith(SKILLS_PATH);

const localState =
(skillMode ? '' : window.location.hash.slice(1)) ||
Expand Down

0 comments on commit 46e16f9

Please sign in to comment.