Skip to content

Commit 5ea203f

Browse files
committed
fix: type prehydrate settings as AppSettings
1 parent 44bc4bc commit 5ea203f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/utils/prehydrate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function initPreferencesOnPrehydrate() {
1616
const validPMs = new Set(['npm', 'pnpm', 'yarn', 'bun', 'deno', 'vlt'])
1717

1818
// Read settings from localStorage
19-
const settings = JSON.parse(localStorage.getItem('npmx-settings') || '{}')
19+
const settings = JSON.parse(localStorage.getItem('npmx-settings') || '{}') as AppSettings
2020

2121
const accentColorId = settings.accentColorId
2222
if (accentColorId && accentColorIds.has(accentColorId)) {

0 commit comments

Comments
 (0)