From d1775af4d143688c0f07ccdb3e25bb6c3a829676 Mon Sep 17 00:00:00 2001 From: joel Date: Mon, 28 Oct 2024 13:27:37 -0700 Subject: [PATCH] fix: prefs issue for player --- packages/player/package.json | 2 +- packages/player/src/hooks/use-player-prefs.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/player/package.json b/packages/player/package.json index 3045a21cbd..097b91a98d 100644 --- a/packages/player/package.json +++ b/packages/player/package.json @@ -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", diff --git a/packages/player/src/hooks/use-player-prefs.ts b/packages/player/src/hooks/use-player-prefs.ts index eaf02d54d0..b05a905662 100644 --- a/packages/player/src/hooks/use-player-prefs.ts +++ b/packages/player/src/hooks/use-player-prefs.ts @@ -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 ) }