Skip to content

Commit 1aa6521

Browse files
fixed typing issue that stopped build (#38)
1 parent cc39c6a commit 1aa6521

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/useCookie.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function useCookie<K extends keyof typeof schemas>(name: K) {
3737
const parsed = schemas[name].safeParse(
3838
typeof value === "string" ? value : JSON.parse(value),
3939
);
40-
return parsed.success ? parsed.data : null;
40+
return parsed.success ? (parsed.data as Value) : null;
4141
}, [name]);
4242

4343
// Set cookie with validation

0 commit comments

Comments
 (0)