diff --git a/apps/yaak-client/components/CookieDialog.tsx b/apps/yaak-client/components/CookieDialog.tsx index faf27b4c..a4dc7701 100644 --- a/apps/yaak-client/components/CookieDialog.tsx +++ b/apps/yaak-client/components/CookieDialog.tsx @@ -130,7 +130,7 @@ export const CookieDialog = ({ cookieJarId }: Props) => { return key !== nextCookieKey; }); - patchModel(cookieJar, { cookies: [...nextCookies, nextCookie] }); + void patchModel(cookieJar, { cookies: [...nextCookies, nextCookie] }); setSelectedCookieKey(nextCookieKey); setEditingCookieKey(null); setDraftCookie(null); @@ -210,7 +210,7 @@ export const CookieDialog = ({ cookieJarId }: Props) => { setEditingCookieKey(null); setDraftCookie(null); setDraftExpiresInput(""); - patchModel(cookieJar, { cookies: [] }); + void patchModel(cookieJar, { cookies: [] }); }} /> @@ -276,7 +276,7 @@ export const CookieDialog = ({ cookieJarId }: Props) => { setDraftCookie(null); setDraftExpiresInput(""); } - patchModel(cookieJar, { + void patchModel(cookieJar, { cookies: cookieJar.cookies.filter( (c2: Cookie) => cookieKey(c2) !== key, ), @@ -570,6 +570,8 @@ function CookieTextInput({ return ( onChange(event.target.value)} @@ -585,6 +587,8 @@ function CookieTextInput({ function CookieTextarea({ onChange, value }: { onChange: (value: string) => void; value: string }) { return (