Skip to content

Commit

Permalink
fix: prefs issue for player
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhooks committed Oct 28, 2024
1 parent cfe6412 commit d1775af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/player/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skillrecordings/player",
"version": "1.1.7",
"version": "1.1.8",
"description": "Internal, shared utilities",
"author": "Joel Hooks",
"main": "./dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/player/src/hooks/use-player-prefs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ export const getPlayerPrefs = () => {
}
return (
cookies.get(PLAY_PREFS_KEY) ||
cookies.set(PLAY_PREFS_KEY, defaultPlayerPreferences)
cookies.set(PLAY_PREFS_KEY, defaultPlayerPreferences) ||
defaultPlayerPreferences
)
}

Expand Down

0 comments on commit d1775af

Please sign in to comment.