Fix cookie jar query

This commit is contained in:
Gregory Schier
2024-10-09 11:26:19 -07:00
parent 4a81818d05
commit 2e2b3128c5
6 changed files with 9 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
import type { CookieJar } from '@yaakapp-internal/models';
import { atom, useAtomValue } from 'jotai';
export const cookieJarsAtom = atom<CookieJar[]>([]);
export const cookieJarsAtom = atom<CookieJar[] | undefined>();
export function useCookieJars() {
return useAtomValue(cookieJarsAtom);